Skip to content

Commit ae416e6

Browse files
committed
fix: main page title links
1 parent ec15d51 commit ae416e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/component/MarkdownReader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const MarkdownReader = {
6868
return [{
6969
type: "html",
7070
regex: /<a href="#(.*)">/g,
71-
replace: "<a href='/" + this.document + "#$1'>"
71+
replace: "<a href='/" + (this.document ? this.document + "#" : "") + "$1'>"
7272
}];
7373
});
7474

0 commit comments

Comments
 (0)