parent
037837b551
commit
0e4a111f81
1714 changed files with 20803 additions and 11751 deletions
|
|
@ -0,0 +1,10 @@
|
|||
import * as mfm from 'mfm-js';
|
||||
import { Note } from '@/models/entities/note';
|
||||
import { toHtml } from '../../../mfm/to-html';
|
||||
|
||||
export default function(note: Note) {
|
||||
let html = note.text ? toHtml(mfm.parse(note.text), JSON.parse(note.mentionedRemoteUsers)) : null;
|
||||
if (html == null) html = '<p>.</p>';
|
||||
|
||||
return html;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue