Render inline code correctly in MFM #21
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