Add MFM syntax

This commit is contained in:
syuilo
2020-12-31 02:51:51 +09:00
parent bc22cabdb5
commit e6705b1a65
3 changed files with 56 additions and 1 deletions

View File

@@ -129,6 +129,22 @@ export default defineComponent({
style = `transform: ${transform};`;
break;
}
case 'x2': {
style = `font-size: 200%;`;
break;
}
case 'x3': {
style = `font-size: 400%;`;
break;
}
case 'x4': {
style = `font-size: 600%;`;
break;
}
case 'blur': {
// TODO
break;
}
}
if (style == null) {
return h('span', {}, ['[', token.node.props.name, ...genEl(token.children), ']']);