diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-12-05 17:39:26 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-12-05 17:39:26 +0900 |
| commit | ed4860dfd9a84df09888cfbb87ca0896eeb50204 (patch) | |
| tree | cd3e6df2ec238ba0e4c7c34321a967dc1510c9ee /src/mfm/html.ts | |
| parent | [Client] Resolve #3500 (diff) | |
| download | sharkey-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.ts | 6 |
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)); |