提交 6d079253 编写于 作者: D DCloud_LXH

chore: createSidebar

上级 fe6fbb81
......@@ -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(/<!--([\s\S]*?)-->/g, '')).forEach(token => {
new MarkdownIt().parse(fs.readFileSync(file, { encoding: 'utf-8' }).replace(/<!--([\s\S]*?)-->/g, '').replace(/\t/g, ' ')).forEach(token => {
if (token.type === 'inline') {
let text
let link
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册