We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6484e7 commit 1340e37Copy full SHA for 1340e37
lib/markdown/link.js
@@ -2,7 +2,7 @@
2
// 1. adding target="_blank" to external links
3
// 2. converting internal links to <router-link>
4
5
-const indexRE = /(.*)(index|readme).md(#?.*)$/i
+const indexRE = /(^|.*\/)(index|readme).md(#?.*)$/i
6
7
module.exports = (md, externalAttrs) => {
8
let hasOpenRouterLink = false
0 commit comments