Skip to content

Commit

Permalink
Update toc.js
Browse files Browse the repository at this point in the history
  • Loading branch information
EricBusch committed Feb 2, 2021
1 parent 73456f6 commit 296e435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
document.addEventListener('DOMContentLoaded', function () {
document.querySelectorAll('#fullArticle h2, #fullArticle h3, #fullArticle h4, #fullArticle h5').forEach($heading => {
document.querySelectorAll('#fullArticle > h2, #fullArticle > h3, #fullArticle > h4, #fullArticle > h5').forEach($heading => {

// @link https://attacomsian.com/blog/deep-anchor-links-javascript

Expand Down

0 comments on commit 296e435

Please sign in to comment.