Created
June 25, 2024 17:59
-
-
Save wplit/d2bc4f1f7bbe4a430693d9bfc9bcbe13 to your computer and use it in GitHub Desktop.
remove heading text from beginning of links in table of contents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(($) => { | |
const headingText = "New York Tipps - "; | |
tocbot.options.headingLabelCallback = (string) => { | |
return string.replace(headingText, ""); | |
} | |
tocbot.refresh() | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment