2018-06-18 14:28:43 +09:00
|
|
|
import { INote } from '../../../models/note';
|
2019-01-30 14:57:13 +09:00
|
|
|
import toHtml from '../../../mfm/toHtml';
|
2018-06-21 01:21:57 +09:00
|
|
|
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-11-04 15:17:52 +09:00
|
|
|
if (html == null) html = '<p>.</p>';
|
2018-04-22 10:44:17 +09:00
|
|
|
|
|
|
|
return html;
|
|
|
|
}
|