thlorenz / doctoc

📜 Generates table of contents for markdown files inside local git repository. Links are compatible with anchors generated by github or other sites.
https://www.npmjs.com/package/doctoc
MIT License
4.23k stars 480 forks source link

Feature request: Option for ToC numeration #257

Open danieldanielecki opened 5 months ago

danieldanielecki commented 5 months ago

Would be great if we could generate not only in a form of unordered lists, but also ordered lists (1, 2, 2.1, 2.2, 3, 3.1, 3.1.1, ...).

AndrewSouthpaw commented 4 months ago

Sounds like a great improvement! A PR with test coverage would be welcome.