提交 2ff3651d 编写于 作者: D DCloud_LXH

fix: normallizeLink

上级 98e65f3c
......@@ -21,9 +21,9 @@ module.exports = function (md) {
url = isExternal(url)
? url
: normalizeLink(url)
.replace(/\.md\b/, '')
.replace(/\bREADME\b/, '')
.replace(/\/index/, '/')
.replace(/\.md\b/, '.html')
.replace(/\bREADME\b/, 'index.html')
.replace(/\/index(?!\.)/, 'index.html')
.replace(/\?id=/, '#')
.replace(/\\/g, '/')
return oldNormalizeLink.bind(this)(url)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册