[MFM] Add italic syntax

Resolve #3486
This commit is contained in:
syuilo
2018-12-05 17:39:26 +09:00
parent 20c0690352
commit ed4860dfd9
4 changed files with 50 additions and 0 deletions

View File

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