1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-04 10:46:09 +02:00

[MFM] Add italic syntax

Resolve #3486
This commit is contained in:
syuilo
2018-12-05 17:39:26 +09:00
parent 20c0690352
commit ed4860dfd9
4 changed files with 50 additions and 0 deletions

View File

@@ -37,6 +37,12 @@ export default (tokens: Node[], mentionedRemoteUsers: INote['mentionedRemoteUser
return el;
},
italic(token) {
const el = doc.createElement('i');
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));