markdown-toc icon indicating copy to clipboard operation
markdown-toc copied to clipboard

Generating TOC by starting parsing after toc tag

Open crazyball opened this issue 10 years ago • 5 comments

Actually i've got a markdown file like

# Title

## Summary

<!-- TOC depth:3 withLinks:0 updateOnSave:1 -->
- [Title](#title)
    - Summary
    - First Point
    - Second Point 
<!-- /TOC -->

---

## First Point

// some text

## Second Point 

// some text

But wanted to generate the TOC with data just after the TOC tag like that :

# Title

## Summary

<!-- TOC depth:3 withLinks:0 updateOnSave:1 -->
- First Point
- Second Point 
<!-- /TOC -->

---

## First Point

// some text

## Second Point 

// some text

is there any parameters to do this ?

Thank's

crazyball avatar Jun 25 '15 15:06 crazyball

+1 I also need this feature

ghost avatar Jun 30 '15 11:06 ghost

:+1:

Alternatively, depth could be a range that permits, for example, only heading levels 2–4 to be taken into account? That would allow for ignoring headings higher than a given level.

Starting parsing after the tag would be more versatile in terms of allowing a full-range of heading levels though.

Both would be great! :wink:

delucis avatar Jun 30 '15 13:06 delucis

:+1:

mainiak avatar Jun 30 '15 22:06 mainiak

Thank you @crazyball ,

I noticed it and will add it as soon as possible. :+1:

Happy coding, Darius

nok avatar Jul 07 '15 06:07 nok

:+1:

mdub avatar Jul 23 '15 05:07 mdub