You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.
On Wikipedia you can add a table of contents for a really long page that uses the headings. Is it possible to add a feature like that to pretzel? Perhaps a flag in at the top of the page along with layout and title?
The text was updated successfully, but these errors were encountered:
After some thinking I believe that a custom IContentTransform can do the trick, by parsing the HTML of the page, get all titles, build the TOC and replace a special token (like <!-- TOC --> maybe? I don't know what Wikipedia use.) by the TOC.
By the way, if you end up creating a plugin and you want to share it, please let us know the repo that we can add in our (future) wiki page for all plugins. 😄
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
On Wikipedia you can add a table of contents for a really long page that uses the headings. Is it possible to add a feature like that to pretzel? Perhaps a flag in at the top of the page along with layout and title?
The text was updated successfully, but these errors were encountered: