mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
Better MFM rendering
This commit is contained in:
parent
8e8bb2f190
commit
508823c0ab
1 changed files with 7 additions and 3 deletions
|
@ -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': {
|
||||
|
|
Loading…
Reference in a new issue