We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02bbdd4 commit 9f259dfCopy full SHA for 9f259df
web_src/js/markup/anchors.js
@@ -38,7 +38,7 @@ export function initMarkupAnchors() {
38
const href = a.getAttribute('href');
39
if (!href.startsWith('#user-content-')) continue;
40
const originalId = href.replace(/^#user-content-/, '');
41
- a.setAttribute('href', `#${encodeURIComponent(originalId)}`);
+ a.setAttribute('href', `#${originalId}`);
42
if (a.closest('.markup').querySelectorAll(`a[name="${originalId}"]`).length !== 1) {
43
a.addEventListener('click', (e) => {
44
scrollToAnchor(e.currentTarget.getAttribute('href'), false);
0 commit comments