1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-20 07:49:57 +00:00

chore: type

This commit is contained in:
Anthony Fu 2022-11-25 16:30:38 +08:00
parent 15733000a6
commit a253a222ec

View file

@ -3,7 +3,7 @@ import { describe, expect, it } from 'vitest'
import { renderToString } from 'vue/server-renderer' import { renderToString } from 'vue/server-renderer'
import { contentToVNode } from '~/composables/content' import { contentToVNode } from '~/composables/content'
async function render(content: string, emojis?: Record<string, Emoji[]>) { async function render(content: string, emojis?: Record<string, Emoji>) {
const vnode = contentToVNode(content, emojis) const vnode = contentToVNode(content, emojis)
const html = (await renderToString(vnode)) const html = (await renderToString(vnode))
.replace(/<!--[\[\]]-->/g, '') .replace(/<!--[\[\]]-->/g, '')