nok / markdown-toc

Generate and update magically a table of contents based on the headlines of a parsed markdown file.
MIT License
68 stars 37 forks source link

Title document and generate a Markdown-Toc (package) #104

Open cesarjorgemartinez opened 7 years ago

cesarjorgemartinez commented 7 years ago

Hi,

I have a document, and one general title at top of document. Then, I have a sections:

# TITLE DOC
# Index
(the index generated using “Insert or update md-toc”)
…
# Chapter …
…

When I generate the TOC, then my index is:

TITLE DOC
Index
Chapter …

The TOC is generating a link for the document title, howto prevent to no generate this entry TITLE DOC? Or howto write in a md file a document title using other form to no detected by this plugin as a chapter?

Can the index of titles process all headings from the place where this index is written to end of document?

Regards

Akaizoku commented 5 years ago

I for one only use # for the document title and skip that section using the depthFrom:2 option for the table of contents.

Document

# TITLE DOC

## Index
(the index generated using “Insert or update md-toc”)
…
## Chapter …
…

TOC

<!-- TOC depthFrom:2 depthTo:6 withLinks:0 updateOnSave:1 orderedList:0 -->

- Index
- Chapter …

<!-- /TOC -->
ponsfrilus commented 5 years ago

Related to #60. See this workaround.