We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec15d51 commit ae416e6Copy full SHA for ae416e6
script/component/MarkdownReader.js
@@ -68,7 +68,7 @@ const MarkdownReader = {
68
return [{
69
type: "html",
70
regex: /<a href="#(.*)">/g,
71
- replace: "<a href='/" + this.document + "#$1'>"
+ replace: "<a href='/" + (this.document ? this.document + "#" : "") + "$1'>"
72
}];
73
});
74
0 commit comments