[MFM] Add spin syntax

Resolve #4003
This commit is contained in:
syuilo
2019-01-27 16:18:04 +09:00
parent d906d90010
commit e5d9381503
6 changed files with 47 additions and 0 deletions

View File

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