Skip to content

Commit 205446e

Browse files
author
Yassine El Haddad
committed
- Added isCustomElement configuration to recognize the <Badge> component.
- Included support for deprecated HTML tags as custom elements: - `<center>`, `<font>`, `<big>`, `<small>`, `<strike>`, `<tt>`, `<marquee>`, `<blink>`, `<applet>`, `<frameset>`, `<frame>`, `<dir>` - Prevented Vue compiler warnings by treating these tags and the `<Badge>` component as custom elements. - Improved compatibility with legacy HTML content and custom components in markdown.
1 parent b81ee35 commit 205446e

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

docs/.vuepress/config.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,22 @@ export default defineUserConfig({
1414
bundler: viteBundler({
1515
viteOptions: {
1616
ssr: {
17-
noExternal: ["vue-select", "vue-multiselect"],
17+
noExternal: ['vue-select', 'vue-multiselect'],
18+
},
19+
},
20+
vuePluginOptions: {
21+
template: {
22+
compilerOptions: {
23+
isCustomElement: (tag) => {
24+
// List of deprecated HTML tags to treat as custom elements
25+
// Add any other custom elements to this list
26+
const customElements = [
27+
'Badge', 'center', 'font', 'big', 'small', 'strike', 'tt',
28+
'marquee', 'blink', 'applet', 'frameset', 'frame', 'dir',
29+
];
30+
return customElements.includes(tag);
31+
},
32+
},
1833
},
1934
},
2035
}),

0 commit comments

Comments
 (0)