Render inline code correctly in MFM

This commit is contained in:
Sol Fisher Romanoff 2022-06-27 10:15:57 +03:00
parent 9e13e5d164
commit eb69fc33f6
No known key found for this signature in database
GPG key ID: 9D3F2B64F2341B62

View file

@ -210,11 +210,10 @@ export default defineComponent({
} }
case 'inlineCode': { case 'inlineCode': {
return [h('pre', { return [h('code', {
key: Math.random(), key: Math.random(),
code: token.props.code, display: 'inline'
inline: true }, token.props.code)]
})]
} }
case 'quote': { case 'quote': {