summaryrefslogtreecommitdiff
path: root/src/mfm/html.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-12-05 17:39:26 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-12-05 17:39:26 +0900
commited4860dfd9a84df09888cfbb87ca0896eeb50204 (patch)
treecd3e6df2ec238ba0e4c7c34321a967dc1510c9ee /src/mfm/html.ts
parent[Client] Resolve #3500 (diff)
downloadsharkey-ed4860dfd9a84df09888cfbb87ca0896eeb50204.tar.gz
sharkey-ed4860dfd9a84df09888cfbb87ca0896eeb50204.tar.bz2
sharkey-ed4860dfd9a84df09888cfbb87ca0896eeb50204.zip
[MFM] Add italic syntax
Resolve #3486
Diffstat (limited to 'src/mfm/html.ts')
-rw-r--r--src/mfm/html.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mfm/html.ts b/src/mfm/html.ts
index 083150ab70..b01c5ad318 100644
--- a/src/mfm/html.ts
+++ b/src/mfm/html.ts
@@ -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));