提交 7f5d8388 编写于 作者: D DCloud_LXH

chore: createSidebar

上级 0d8f5461
......@@ -25,14 +25,7 @@ function parseBar(file, options) {
text = text || child.content
break;
case 'link_open':
const len = child.attrs.length
for (let index = 0; index < len; index++) {
const attr = child.attrs[index];
if (attr[0] === 'href') {
link = link || attr[1]
break;
}
}
link = link || new Map(child.attrs).get('href')
break;
case 'code_inline':
try {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册