mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-25 18:45:13 +00:00
Better MFM rendering
This commit is contained in:
parent
8495e37566
commit
c9fcfc6862
1 changed files with 7 additions and 3 deletions
|
@ -130,9 +130,13 @@ export default defineComponent({
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return h('span', {
|
if (style == null) {
|
||||||
style: 'display: inline-block;' + style,
|
return h('span', {}, ['[', token.node.props.name, ...genEl(token.children), ']']);
|
||||||
}, genEl(token.children));
|
} else {
|
||||||
|
return h('span', {
|
||||||
|
style: 'display: inline-block;' + style,
|
||||||
|
}, genEl(token.children));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
case 'small': {
|
case 'small': {
|
||||||
|
|
Loading…
Reference in a new issue