Cloud-Awesome / markdown-maker

Lightweight library to assist creation of .md files (in GitHub and/or DocFX flavours)
MIT License
0 stars 0 forks source link

Add support for nested lists within MdList #14

Closed Cloud-Awesome closed 2 years ago

Cloud-Awesome commented 2 years ago

e.g.

var numberedList = new MdList(MdListType.Ordered)
    .AddItem("First point")
    .AddItem("Second point")    
    .AddChildList(new MdList(MdListType.Ordered) {
        .AddItem("First child")
        .AddItem("Second child")
    })
    .AddItem("Third point")
    .AddItem("Fourth point");

produces:

- First point
- Second point
    - First child
    - Second child
- Third point
- Fourth point

rendered as: