Allow using some deprecated and non-standard html tags

This commit is contained in:
Oleg Kalachev
2022-04-12 05:36:55 +04:00
parent 48fd45ea9a
commit 7154f5afc2

View File

@@ -1,5 +1,7 @@
const sidebar = require('./sidebar');
const allowedTags = ['font', 'center', 'nobr']; // allow using some deprecated and non-standard html tags
module.exports = {
// site config
lang: 'en-US',
@@ -53,6 +55,15 @@ module.exports = {
extendsMarkdown(md) {
md.use(require('markdown-it-attrs')); // to use custom headers anchors
},
bundlerConfig: {
vuePluginOptions: {
template: {
compilerOptions: {
isCustomElement: tag => allowedTags.includes(tag)
}
}
}
},
plugins: [
'@vuepress/plugin-search',
'vuepress-plugin-copy-code2',