Markdown TOC generator with tree presentation and line numbers
Go to file
2024-05-01 15:42:23 +02:00
docs worked on documentation 2024-04-30 08:07:18 +02:00
tests seems to work, but might need unit tests 2024-04-30 23:52:13 +02:00
.gitignore dont put binaries in repo 2024-04-29 09:31:22 +02:00
main.go print_children func works 2024-05-01 15:42:23 +02:00
Makefile removed print_toc function to cleanup logic 2024-04-30 18:43:20 +02:00
README.md loop through headers differently to have an order and updated README 2024-04-30 19:22:42 +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

  • print header tree
  • delph deeper into different Markdown implementations (like CommonMark)
  • add support for "Setext-style headers"

logic ideas

For a tree structure you will probably need parent/child relationships.
You might need to create a parent and a child field in the header struct.