Skip to content

Commit

Permalink
Merge pull request #222 from yel-hadd/master
Browse files Browse the repository at this point in the history
 [TCR-566] Support Badge and deprecated HTML elements as custom elements in VuePress
  • Loading branch information
yel-hadd authored Jan 17, 2025
2 parents b81ee35 + 205446e commit 2a13aaf
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,22 @@ export default defineUserConfig({
bundler: viteBundler({
viteOptions: {
ssr: {
noExternal: ["vue-select", "vue-multiselect"],
noExternal: ['vue-select', 'vue-multiselect'],
},
},
vuePluginOptions: {
template: {
compilerOptions: {
isCustomElement: (tag) => {
// List of deprecated HTML tags to treat as custom elements
// Add any other custom elements to this list
const customElements = [
'Badge', 'center', 'font', 'big', 'small', 'strike', 'tt',
'marquee', 'blink', 'applet', 'frameset', 'frame', 'dir',
];
return customElements.includes(tag);
},
},
},
},
}),
Expand Down

0 comments on commit 2a13aaf

Please sign in to comment.