docs: prevent code ast duplicate with slots

Fixes #654
This commit is contained in:
Benjamin Canac
2023-09-10 21:38:11 +02:00
parent 15ee768729
commit b5e8685a2c

View File

@@ -205,7 +205,7 @@ function renderObject (obj: any) {
return obj return obj
} }
const { data: ast } = await useAsyncData(`${name}-ast-${JSON.stringify(componentProps)}`, () => transformContent('content:_markdown.md', code.value, { const { data: ast } = await useAsyncData(`${name}-ast-${JSON.stringify({ props: componentProps, slots: props.slots })}`, () => transformContent('content:_markdown.md', code.value, {
highlight: { highlight: {
theme: { theme: {
light: 'material-theme-lighter', light: 'material-theme-lighter',