Skip to content

Commit da54832

Browse files
authored
Tolerate anchors in Markdown links (again)
Not sure how I missed this when redoing the scripts.
1 parent 92be589 commit da54832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/_build/generator.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export async function makeGenerator() {
115115
)
116116

117117
// fix links
118-
body = body.replace(/\]\((?!\w+:\/\/)(.+?)\.md\)/gim, "]($1.html)")
118+
body = body.replace(/\]\((?!\w+:\/\/)(.+?)\.md([)#])/gim, "]($1.html$2")
119119

120120
let markedHtml = marked(body)
121121

0 commit comments

Comments
 (0)