diff --git a/assets/js/popover.js b/assets/js/popover.js index 3d7a30c06..29104b919 100644 --- a/assets/js/popover.js +++ b/assets/js/popover.js @@ -27,7 +27,7 @@ function initPopover(baseURL, useContextualBacklinks, renderLatex) { let splitLink = li.href.split("#") let cleanedContent = removeMarkdown(linkDest.content) if (splitLink.length > 1) { - let headingName = splitLink[1].replace(/\-/g, " ") + let headingName = decodeURIComponent(splitLink[1]).replace(/\-/g, " ") let headingIndex = cleanedContent.toLowerCase().indexOf("" + headingName + "") cleanedContent = cleanedContent.substring(headingIndex, cleanedContent.length) }