diff --git a/docs/.vuepress/markdown/createSidebar.js b/docs/.vuepress/markdown/createSidebar.js index 10c5654f7ef759a3fef3f9bea082c5508f18c0a5..da4231ff3746fbbffcfade03b8644004a0c7fe46 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 +}