mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-10 21:40:00 +00:00
How can i make a navigation with head label like "h1 h2" #171
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @luodaoyi on GitHub (Dec 10, 2017).
How can i make a navigation with head label like "h1 h2"
like:
except html document
i want to have a nav list like this:
now the attribute like "id" is ok
How can i do to generate navigation list?
thanks to Reply !
👍
@xoofx commented on GitHub (Dec 11, 2017):
There is nothing like this builtin into markdig, but you can have a look at a code sample md2toc here that prints something similar to what you are looking for:
5020fdd3b1/src/mdtoc/Program.cs (L70-L98)It doesn't print HTML but markdown, but it should be pretty easy to modify to your requirements.
@luodaoyi commented on GitHub (Dec 11, 2017):
thank you!