Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f917da8

Browse files
committed
bump 1.3.2
1 parent 64309be commit f917da8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/docsify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2416,7 +2416,7 @@ renderer.code = function (code, lang) {
24162416
};
24172417
renderer.link = function (href, title, text) {
24182418
if (OPTIONS$1.router && !/^(?:\w+:)?\/\/([^\s\.]+\.\S{2}|localhost[\:?\d]*)\S*$/.test(href)) {
2419-
href = !/^\/#/.test(href) ? ("#/" + (getRoute()) + href) : href;
2419+
href = ("#/" + href).replace(/\/\//g, '/');
24202420
}
24212421

24222422
return ("<a href=\"" + href + "\" title=\"" + (title || '') + "\">" + text + "</a>")

0 commit comments

Comments
 (0)