fix search rendering
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
FloatingGhost 2022-07-01 13:50:14 +01:00
parent 6e641a99a2
commit 370f3b14fa

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)