2018-06-18 14:28:43 +09:00
|
|
|
import { INote } from '../../../models/note';
|
2018-06-21 01:21:57 +09:00
|
|
|
import toHtml from '../../../mfm/html';
|
|
|
|
import parse from '../../../mfm/parse';
|
2018-04-22 10:44:17 +09:00
|
|
|
|
|
|
|
export default function(note: INote) {
|
2018-06-17 15:58:23 +09:00
|
|
|
let html = toHtml(parse(note.text), note.mentionedRemoteUsers);
|
2018-09-09 02:59:14 +09:00
|
|
|
if (html == null) html = '';
|
2018-04-22 10:44:17 +09:00
|
|
|
|
|
|
|
return html;
|
|
|
|
}
|