Skip to content

Commit

Permalink
Update outline.js (#677)
Browse files Browse the repository at this point in the history
Co-authored-by: Guillaume Grossetie <[email protected]>
  • Loading branch information
lucianciolacu and ggrossetie authored Mar 22, 2023
1 parent 712fded commit 3fe542a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/outline.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ function getOutline (node, depth) {
const title = sanitize(section.getTitle())
return {
title: title,
// encode section ID until https://bugs.chromium.org/p/chromium/issues/detail?id=985254 is fixed
destination: encodeURIComponent(section.getId()).replace(/%/g, '#25'),
destination: section.getId(),
children: getOutline(section, depth - 1)
}
})
Expand Down

0 comments on commit 3fe542a

Please sign in to comment.