Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue3: Fix SourceDecorator Exception #25773

Merged
merged 8 commits into from
Feb 23, 2024
5 changes: 4 additions & 1 deletion code/renderers/vue3/src/docs/sourceDecorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ function getTemplateComponents(
}

function getComponents(template: string): (TemplateChildNode | VNode)[] {
const ast = baseParse(template);
const ast = baseParse(template, {
isNativeTag: () => true,
decodeEntities: (rawtext, asAttr) => rawtext,
});
const components = ast?.children;
if (!components) return [];
return components;
Expand Down
Loading