This repository has been archived by the owner on Oct 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Allow toc labels to be different from actual headings #128
Comments
If anyone has the same issue, you can edit
add this
and replace
with
|
but editing the plugin means future updates will override it. |
This is true, unless the next update (if any) includes this functionality itself. But it is the only sane workaround I have found. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It would be great to be able to override headings in the toc instead of just being able to exclude them.
My use-case is that I have headings that are too long to fit in a single line in my sidebar. I'd like to use shorter labels in the toc.
One approach would be a shorttag to define an override:
<h2>The actual heading[toc-label]The toc label[/toc-label]</h2>
It would also be sufficient to provide a filter hook in
extract_headings()
so that the override can be implemented individually.The text was updated successfully, but these errors were encountered: