Skip to content

Commit

Permalink
fix: aside marker cannot work in chinese doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyuan0704 committed Sep 30, 2022
1 parent 39d6ef9 commit 4b7da45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/theme-default/logic/sideEffects.ts
Expand Up @@ -134,7 +134,7 @@ export function bindingAsideScroll() {
);
let prevActiveLink: null | HTMLAnchorElement = null;
const headers = Array.from(aside?.getElementsByTagName('a') || []).map(
(item) => item.hash
(item) => decodeURIComponent(item.hash)
);
if (marker && !headers.length) {
marker.style.opacity = '0';
Expand Down

0 comments on commit 4b7da45

Please sign in to comment.