Closed 4mig4 closed 5 years ago
So this should now be possible using lua-discount
- I added toc
as a default option (https://github.com/Fizzadar/Luapress/commit/670440c96fbb2a77f11d6d4810f5f279ac9f8265) but it needs more work. Something like: $toc=true
within a post to generate it.
Nice, looking forward to using it.
Did you manage to find a simple way to integrate it ?
@4mig4 not yet I've not had the time, I doubt I'll be able to investigate this for a few weeks.
This is now possible - can be rendered in-post with $=toc
or in a template with post.toc
.
Could it be possible to add a keyword for TOC {{toc}} that would build automatically a table of content of the current post/page based on the headers of the post/page ?