From b025856f748d1048d74d57c6091fc3a29b04fe03 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Wed, 31 Jul 2024 15:57:55 +0800 Subject: [PATCH] chore: createSidebar --- docs/.vuepress/markdown/createSidebar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/.vuepress/markdown/createSidebar.js b/docs/.vuepress/markdown/createSidebar.js index 10c5654f7..da4231ff3 100644 --- a/docs/.vuepress/markdown/createSidebar.js +++ b/docs/.vuepress/markdown/createSidebar.js @@ -13,7 +13,7 @@ function parseBar(tab, file, options) { const contents = [] new MarkdownIt() - .parse(fs.readFileSync(file, { encoding: 'utf-8' }).replace(//g, "")) + .parse(fs.readFileSync(file, { encoding: 'utf-8' }).replace(//g, "").replace(/\t/g, ' ')) .forEach(token => { if (token.type === 'inline') { let text @@ -80,4 +80,4 @@ module.exports = function (tabs = []) { createSiteMap(links, () => links.length = 0) return tabs.length ? sidebar : false -} \ No newline at end of file +} -- GitLab