提交 e8b78c4e 编写于 作者: U ULIVZ

fix($markdown): "index" is dropped in a link with "*index" pattern

Reported at #996
上级 b0133e34
......@@ -2,7 +2,7 @@
// 1. adding target="_blank" to external links
// 2. converting internal links to <router-link>
const indexRE = /(.*)(index|readme).md(#?.*)$/i
const indexRE = /(^|.*\/)(index|readme).md(#?.*)$/i
module.exports = (md, externalAttrs) => {
let hasOpenRouterLink = false
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册