Skip to content

Commit 3fe542a

Browse files
Update outline.js (#677)
Co-authored-by: Guillaume Grossetie <[email protected]>
1 parent 712fded commit 3fe542a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/outline.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ function getOutline (node, depth) {
2020
const title = sanitize(section.getTitle())
2121
return {
2222
title: title,
23-
// encode section ID until https://bugs.chromium.org/p/chromium/issues/detail?id=985254 is fixed
24-
destination: encodeURIComponent(section.getId()).replace(/%/g, '#25'),
23+
destination: section.getId(),
2524
children: getOutline(section, depth - 1)
2625
}
2726
})

0 commit comments

Comments
 (0)