From 7154f5afc2b1e17b11615de126fa225bb9ebce81 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Tue, 12 Apr 2022 05:36:55 +0400 Subject: [PATCH] Allow using some deprecated and non-standard html tags --- docs/.vuepress/config.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 0a04a811..370a421e 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -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',