mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-02 17:55:52 +02:00
11 lines
296 B
TypeScript
11 lines
296 B
TypeScript
import { INote } from '../../../models/note';
|
|
import { toHtml } from '../../../mfm/toHtml';
|
|
import { parse } from '../../../mfm/parse';
|
|
|
|
export default function(note: INote) {
|
|
let html = toHtml(parse(note.text), note.mentionedRemoteUsers);
|
|
if (html == null) html = '<p>.</p>';
|
|
|
|
return html;
|
|
}
|