Prevent multiple reserse-footnote from overlapping (fix #439)

This commit is contained in:
Cotes Chung
2021-11-29 20:03:12 +08:00
parent ca8e85a7ec
commit 0126ab6d0b
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -20,8 +20,8 @@ $(function() {
const hash = decodeURI(this.hash);
let isFnRef = RegExp(/^#fnref:/).test(hash);
let isFn = RegExp(/^#fn:/).test(hash);
let selector = hash.includes(":") ? hash.replace(/\:/, "\\:") : hash;
let isFn = isFnRef? false : RegExp(/^#fn:/).test(hash);
let selector = hash.includes(":") ? hash.replace(/\:/g, "\\:") : hash;
let target = $(selector);
if (target.length) {