[MFM] Add center syntax

Resolve #1775
This commit is contained in:
syuilo
2018-11-25 13:36:40 +09:00
parent 2c5162671c
commit f3155ea180
5 changed files with 44 additions and 1 deletions

View File

@ -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;