[MFM] Implement strike syntax

Resolve #3485
This commit is contained in:
syuilo
2018-12-04 01:28:21 +09:00
parent ce3f735654
commit 6e343d50f1
4 changed files with 40 additions and 0 deletions

View File

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