Markdown TOC generator with tree presentation and line numbers
Go to file
2024-04-30 11:03:08 +02:00
docs worked on documentation 2024-04-30 08:07:18 +02:00
tests moved example markdown files to test dir 2024-04-29 09:33:28 +02:00
.gitignore dont put binaries in repo 2024-04-29 09:31:22 +02:00
main.go stored line numbers in struct 2024-04-30 10:59:47 +02:00
Makefile added makefile 2024-04-29 09:35:02 +02:00
README.md updated README 2024-04-30 11:03:08 +02:00

https://en.wikipedia.org/wiki/Markdown

There is no official Markdown specification and there are many different
implementations.
This seems intended by the creators of the language.

TODO

  • count number of headings for each heading level (loop through all headings, find the highest heading level, get all used levels
    then create a slice or slice of maps and append after each deeper level discovered...)
  • print heading tree
  • delph deeper into different Markdown implementations (like CommonMark)
  • add support for "Setext-style headers"