goldmark-toc

Support for generating Tables of Contents from goldmark Markdown documents.

BSD-3-CLAUSE License

Stars
13
Committers
3

Bot releases are hidden (Show)

goldmark-toc - v0.10.0 Latest Release

Published by abhinav 8 months ago

Added

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

Changed

  • Relicense to BSD3.
goldmark-toc - v0.9.0

Published by abhinav 11 months ago

Changed

  • Rename HeadingID option to TitleID. HeadingID is too generic.
goldmark-toc - https://github.com/abhinav/goldmark-toc/releases/tag/v0.8.0

Published by abhinav 11 months ago

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.
goldmark-toc - https://github.com/abhinav/goldmark-toc/releases/tag/v0.7.0

Published by abhinav about 1 year ago

Added

  • The new MinDepth option allows ignoring headings below the specified level.
goldmark-toc - https://github.com/abhinav/goldmark-toc/releases/tag/v0.6.0

Published by abhinav about 1 year ago

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.
goldmark-toc - https://github.com/abhinav/goldmark-toc/releases/tag/v0.5.0

Published by abhinav about 1 year ago

Added

  • Add a ListID attribute to Extender and Transformer.
    If set, the rendered <ul> will have an id attribute with this value.
goldmark-toc - v0.4.0

Published by abhinav over 1 year ago

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.
goldmark-toc - v0.3.0

Published by abhinav almost 2 years ago

Changed

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

Published by abhinav almost 3 years ago

Fixed

  • inspect: Correctly handle escaped punctuation in titles.
  • render: Don't unintentionally interpret escape sequences in titles.
goldmark-toc - v0.2.0

Published by abhinav over 3 years ago

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.
goldmark-toc - v0.1.0

Published by abhinav over 3 years ago

Initial release.

Package Rankings
Top 6.33% on Proxy.golang.org
Badges
Extracted from project README
Go Reference CI codecov