Merge pull request 'Render inline code correctly in MFM' (#21) from sfr/pleroma-fe:mfm-code into develop
Reviewed-on: https://akkoma.dev/AkkomaGang/pleroma-fe/pulls/21
This commit is contained in:
commit
06343addef
1 changed files with 3 additions and 4 deletions
|
@ -210,11 +210,10 @@ export default defineComponent({
|
|||
}
|
||||
|
||||
case 'inlineCode': {
|
||||
return [h('pre', {
|
||||
return [h('code', {
|
||||
key: Math.random(),
|
||||
code: token.props.code,
|
||||
inline: true
|
||||
})]
|
||||
display: 'inline'
|
||||
}, token.props.code)]
|
||||
}
|
||||
|
||||
case 'quote': {
|
||||
|
|
Loading…
Reference in a new issue