fix search rendering #25

Merged
floatingghost merged 1 commit from mfm-search into develop 2022-07-01 12:50:45 +00:00

View file

@ -265,6 +265,13 @@ export default defineComponent({
})] })]
} }
case 'search': {
return [h('a', {
href: `https://www.google.com/search?q=${token.props.query}`
}, token.props.content)
]
}
default: { default: {
console.error('unrecognized ast type:', token.type) console.error('unrecognized ast type:', token.type)