Closed
Description
Bug Report
Steps to reproduce
have a BUG in scroll.js
this BUG cause:
if path and id include chinese character, it can't find some result from the nav[].
What is current behaviour
export function scrollIntoView(path, id) {
if (!id) {
return;
}
const topMargin = config().topMargin;
const section = dom.find('#' + id);
section && scrollTo(section, topMargin);
const li = nav[getNavKey(path, id)];
What is the expected behaviour
last line shoule changed to:
const li = nav[getNavKey(decodeURIComponent(path), decodeURIComponent(id))];
Other relevant information
-
Bug does still occur when all/other plugins are disabled?
-
Your OS:
-
Node.js version:
-
npm/yarn version:
-
Browser version:
-
Docsify version:
-
Docsify plugins: