mirror of
https://github.com/welpo/tabi.git
synced 2025-10-10 23:38:53 +02:00
✨ feat: enhance Table of Contents
- Introduce `toc_ignore_pattern` to ignore specific headers based on regex. - Allow custom ToC placement with shortcode or "<!-- toc -->" marker. - Increase max depth for ToC to 4. - Update Documentation for the above features. - Move ToC generation to a macro file.
This commit is contained in:
parent
a6046cd9d7
commit
07ceddcc00
7 changed files with 296 additions and 58 deletions
2
templates/shortcodes/toc.html
Normal file
2
templates/shortcodes/toc.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
{# Inserts special string to add the Table of Contents anywhere on a post #}
|
||||
<!-- toc -->
|
Loading…
Add table
Add a link
Reference in a new issue