diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-11-09 22:32:01 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-11-09 22:32:01 +0900 |
| commit | c9fcfc686218dbca6511ce4046a8e3c253ded9c7 (patch) | |
| tree | ba85ab3ff58b6b2abb96c797a0b4884a54b39749 /src/client/components | |
| parent | Fix router (diff) | |
| download | misskey-c9fcfc686218dbca6511ce4046a8e3c253ded9c7.tar.gz misskey-c9fcfc686218dbca6511ce4046a8e3c253ded9c7.tar.bz2 misskey-c9fcfc686218dbca6511ce4046a8e3c253ded9c7.zip | |
Better MFM rendering
Diffstat (limited to 'src/client/components')
| -rw-r--r-- | src/client/components/mfm.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/client/components/mfm.ts b/src/client/components/mfm.ts index d83cd41528..1960461a13 100644 --- a/src/client/components/mfm.ts +++ b/src/client/components/mfm.ts @@ -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': { |