Add small syntax (#3506)

This commit is contained in:
Aya Morisawa
2018-12-05 20:11:54 +09:00
committed by GitHub
parent dc8f4c8d6a
commit 66836836ab
4 changed files with 38 additions and 0 deletions

View File

@@ -31,6 +31,12 @@ export default (tokens: Node[], mentionedRemoteUsers: INote['mentionedRemoteUser
return el;
},
small(token) {
const el = doc.createElement('small');
dive(token.children).forEach(child => el.appendChild(child));
return el;
},
strike(token) {
const el = doc.createElement('del');
dive(token.children).forEach(child => el.appendChild(child));