Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating TOC by starting parsing after toc tag #31

Open
crazyball opened this issue Jun 25, 2015 · 5 comments
Open

Generating TOC by starting parsing after toc tag #31

crazyball opened this issue Jun 25, 2015 · 5 comments

Comments

@crazyball
Copy link

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

@ghost
Copy link

ghost commented Jun 30, 2015

+1 I also need this feature

@delucis
Copy link

delucis commented Jun 30, 2015

👍

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! 😉

@mainiak
Copy link

mainiak commented Jun 30, 2015

👍

@nok
Copy link
Owner

nok commented Jul 7, 2015

Thank you @crazyball ,

I noticed it and will add it as soon as possible. 👍

Happy coding,
Darius

@mdub
Copy link

mdub commented Jul 23, 2015

👍

dvcrn pushed a commit to dvcrn/markdown-toc that referenced this issue Apr 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants