feat: support <plain> syntax for mfm
This commit is contained in:
parent
660781afd9
commit
4550a4459b
3 changed files with 11 additions and 0 deletions
|
@ -145,6 +145,12 @@ export function toHtml(nodes: mfm.MfmNode[] | null, mentionedRemoteUsers: IMenti
|
|||
a.textContent = node.props.content;
|
||||
return a;
|
||||
},
|
||||
|
||||
plain(node) {
|
||||
const el = doc.createElement('span');
|
||||
appendChildren(node.children, el);
|
||||
return el;
|
||||
},
|
||||
};
|
||||
|
||||
appendChildren(nodes, doc.body);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue