diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-11-25 13:36:40 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-11-25 13:36:40 +0900 |
| commit | f3155ea180a9dfcfad9f8d356e5d334fe8ccf48f (patch) | |
| tree | 5f810930e134db97aa2e1a163244467d8a0e5d40 /src/client/app | |
| parent | Improve MFM (diff) | |
| download | misskey-f3155ea180a9dfcfad9f8d356e5d334fe8ccf48f.tar.gz misskey-f3155ea180a9dfcfad9f8d356e5d334fe8ccf48f.tar.bz2 misskey-f3155ea180a9dfcfad9f8d356e5d334fe8ccf48f.zip | |
[MFM] Add center syntax
Resolve #1775
Diffstat (limited to 'src/client/app')
| -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 e93ea5ccba..d1ce4873fe 100644 --- a/src/client/app/common/views/components/mfm.ts +++ b/src/client/app/common/views/components/mfm.ts @@ -111,6 +111,14 @@ export default Vue.component('misskey-flavored-markdown', { }, genEl(token.children)); } + case 'center': { + return [createElement('div', { + attrs: { + style: 'text-align:center;' + } + }, genEl(token.children))]; + } + case 'motion': { motionCount++; const isLong = getTextCount(token.children) > 10 || getChildrenCount(token.children) > 5; |