summaryrefslogtreecommitdiff
path: root/public/js/index.js
diff options
context:
space:
mode:
authorSheogorath2018-11-19 18:29:50 +0100
committerSheogorath2018-11-19 20:20:56 +0100
commitd6dd33620c7bea3720361d51ab04668a0c913cce (patch)
treef6ee47043216417b8aa21c234e7bc5b18dd8ea6c /public/js/index.js
parent9951b7df7c6523838b413700d51930956c467d6a (diff)
Fix wrong anchors
While experimenting with the ToC changes, it became obvious that anchors for those unnamed headers don't work. This patch fixes those links by running the autolinkify twice and make sure linkify only adds links to non-empty ids. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
Diffstat (limited to 'public/js/index.js')
-rw-r--r--public/js/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 98c3b6d2..a7f4df94 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -2786,6 +2786,7 @@ function updateViewInner () {
renderTOC(ui.area.markdown)
generateToc('ui-toc')
generateToc('ui-toc-affix')
+ autoLinkify(ui.area.markdown)
generateScrollspy()
updateScrollspy()
smoothHashScroll()