Skip to content

Instantly share code, notes, and snippets.

@wplit
Created June 25, 2024 17:59
Show Gist options
  • Save wplit/d2bc4f1f7bbe4a430693d9bfc9bcbe13 to your computer and use it in GitHub Desktop.
Save wplit/d2bc4f1f7bbe4a430693d9bfc9bcbe13 to your computer and use it in GitHub Desktop.
remove heading text from beginning of links in table of contents
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