forked from AkkomaGang/akkoma-fe
fix search rendering
This commit is contained in:
parent
6e641a99a2
commit
370f3b14fa
1 changed files with 7 additions and 0 deletions
|
@ -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: {
|
||||
console.error('unrecognized ast type:', token.type)
|
||||
|
||||
|
|
Loading…
Reference in a new issue