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/client | |
| parent | [Client] Resolve #3500 (diff) | |
| download | misskey-ed4860dfd9a84df09888cfbb87ca0896eeb50204.tar.gz misskey-ed4860dfd9a84df09888cfbb87ca0896eeb50204.tar.bz2 misskey-ed4860dfd9a84df09888cfbb87ca0896eeb50204.zip | |
[MFM] Add italic syntax
Resolve #3486
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/common/views/components/mfm.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/app/common/views/components/mfm.ts b/src/client/app/common/views/components/mfm.ts index dbc874c53d..9502d64d82 100644 --- a/src/client/app/common/views/components/mfm.ts +++ b/src/client/app/common/views/components/mfm.ts @@ -100,6 +100,14 @@ export default Vue.component('misskey-flavored-markdown', { return [createElement('del', genEl(token.children))]; } + case 'italic': { + return (createElement as any)('i', { + attrs: { + style: 'font-style: oblique;' + }, + }, genEl(token.children)); + } + case 'big': { bigCount++; const isLong = getTextCount(token.children) > 10 || getChildrenCount(token.children) > 5; |