Releases: abhinav/goldmark-toc
Releases · abhinav/goldmark-toc
v0.10.0
Added
- {Extender, Transformer}: Add TitleDepth field to change the level of the Table of Contents heading.
Changed
v0.9.0
Changed
- Rename HeadingID option to TitleID. HeadingID is too generic.
v0.8.0
v0.8.0 - 2023-11-24
Added
- Add a HeadingID option to specify a custom ID for the Table of Contents heading.
Changed
- Table of Contents heading now automatically gets an ID if the Parser was given an IDs generator.
v0.7.0
Added
- The new MinDepth option allows ignoring headings below the specified level.
v0.6.0
Added
- The new
Compact
option removes empty nodes in the TOC. If you have >1 level of difference between headings, this will render a cleaner TOC.
v0.5.0
Added
- Add a ListID attribute to Extender and Transformer.
If set, the rendered <ul>
will have an id
attribute with this value.
v0.4.0
Added
- Extender: Add Title field to change the Table of Contents title.
- Inspect: Add MaxDepth option to limit the depth of the Table of Contents.
v0.3.0
Changed
- Change the module path to
go.abhg.dev/goldmark/toc
.
v0.2.1
Fixed
- inspect: Correctly handle escaped punctuation in titles.
- render: Don't unintentionally interpret escape sequences in titles.
v0.2.0
Added
- Add
toc.Transformer
to generate a table of contents to the front of any
document parsed by a Goldmark parser.
- Add
toc.Extender
to extend a goldmark.Markdown
object with the
transformer.