[MFM] Add flip syntax

Resolve #4002
This commit is contained in:
syuilo
2019-01-27 16:31:00 +09:00
parent e5d9381503
commit 4de62220e3
5 changed files with 48 additions and 0 deletions

View File

@@ -61,6 +61,12 @@ export default (tokens: MfmForest, mentionedRemoteUsers: INote['mentionedRemoteU
return el;
},
flip(token) {
const el = doc.createElement('span');
appendChildren(token.children, el);
return el;
},
blockCode(token) {
const pre = doc.createElement('pre');
const inner = doc.createElement('code');