Better MFM rendering

This commit is contained in:
syuilo 2020-11-09 22:32:01 +09:00
parent 8495e37566
commit c9fcfc6862

View file

@ -130,9 +130,13 @@ export default defineComponent({
break;
}
}
return h('span', {
style: 'display: inline-block;' + style,
}, genEl(token.children));
if (style == null) {
return h('span', {}, ['[', token.node.props.name, ...genEl(token.children), ']']);
} else {
return h('span', {
style: 'display: inline-block;' + style,
}, genEl(token.children));
}
}
case 'small': {