Skip to content

Releases: abhinav/goldmark-toc

v0.10.0

27 Feb 13:44
0d490c6
Compare
Choose a tag to compare

Added

  • {Extender, Transformer}: Add TitleDepth field to change the level of the Table of Contents heading.

Changed

  • Relicense to BSD3.

v0.9.0

24 Nov 22:10
b4c44d5
Compare
Choose a tag to compare

Changed

  • Rename HeadingID option to TitleID. HeadingID is too generic.

v0.8.0

24 Nov 22:05
34b3d3d
Compare
Choose a tag to compare

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

12 Sep 04:41
332a004
Compare
Choose a tag to compare

Added

  • The new MinDepth option allows ignoring headings below the specified level.

v0.6.0

11 Sep 13:17
44ab888
Compare
Choose a tag to compare

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

02 Sep 21:48
aea5526
Compare
Choose a tag to compare

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

03 Mar 06:09
2cd0576
Compare
Choose a tag to compare

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

20 Dec 02:48
8da792f
Compare
Choose a tag to compare

Changed

  • Change the module path to go.abhg.dev/goldmark/toc.

v0.2.1

16 Dec 06:53
f2b294d
Compare
Choose a tag to compare

Fixed

  • inspect: Correctly handle escaped punctuation in titles.
  • render: Don't unintentionally interpret escape sequences in titles.

v0.2.0

04 Apr 16:55
db4486a
Compare
Choose a tag to compare

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.