From e5687c50ca8cd091bf477a978aed07264f23a40b Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Tue, 30 Jul 2024 15:25:04 +0800 Subject: [PATCH] =?UTF-8?q?feat(sidebar):=20=E5=A4=84=E7=90=86=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=20tab=20=E4=B8=BA=E4=B8=A4=E4=B8=AA=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/markdown/createSidebar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/.vuepress/markdown/createSidebar.js b/docs/.vuepress/markdown/createSidebar.js index a5d3db9f..0a5210c8 100644 --- a/docs/.vuepress/markdown/createSidebar.js +++ b/docs/.vuepress/markdown/createSidebar.js @@ -13,7 +13,7 @@ function parseBar(tab, file, options) { const linkName = options.link || 'link' const contents = [] - new MarkdownIt().parse(fs.readFileSync(file, { encoding: 'utf-8' }).replace(//g, '')).forEach(token => { + new MarkdownIt().parse(fs.readFileSync(file, { encoding: 'utf-8' }).replace(//g, '').replace(/\t/g, ' ')).forEach(token => { if (token.type === 'inline') { let text let link -- GitLab