Merge pull request #1043 from SISheogorath/fix/tocEmptyHead

Fix ToC breaking documents with empty h* elements
This commit is contained in:
Christoph (Sheogorath) Kern 2018-11-19 21:33:34 +01:00 committed by GitHub
commit 271dff3808
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 6 deletions

View file

@ -2788,6 +2788,7 @@ function updateViewInner () {
renderTOC(ui.area.markdown)
generateToc('ui-toc')
generateToc('ui-toc-affix')
autoLinkify(ui.area.markdown)
generateScrollspy()
updateScrollspy()
smoothHashScroll()