URL-decode the ID to make it work with non-ASCII characters
Fixes #1812.
This commit is contained in:
parent
dfdf19e17f
commit
509ef01213
@ -118,7 +118,7 @@
|
|||||||
|
|
||||||
function idFromHash(target) {
|
function idFromHash(target) {
|
||||||
if (!target.hash) return;
|
if (!target.hash) return;
|
||||||
return target.hash.substring(1);
|
return decodeURIComponent(target.hash.substring(1));
|
||||||
}
|
}
|
||||||
/** @type {{fnref(target:HTMLAnchorElement): string|undefined}[]} */
|
/** @type {{fnref(target:HTMLAnchorElement): string|undefined}[]} */
|
||||||
const footnoteFormats = [
|
const footnoteFormats = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user