Skip to content
Discussion options

You must be logged in to vote

Yes. Markor understands flexmark's "sim TOC" line, so you can set the TOC levels for one document by putting this on its own line where the TOC should appear:

[TOC levels=2-3]: #

That document then gets a TOC with only its ## and ### headings. With nothing after #, the TOC gets a "Table of contents" heading (Markor's translated string). Variants:

  • [TOC levels=2-3]: # "Contents" uses your own title.
  • [TOC levels=2-3]: # '' drops the title and shows just the list, the same as the line Markor inserts itself.
  • levels=1-3, levels=2-4, etc. work as ranges. A single number above 2 means "from 2 up to that" (flexmark), so levels=3 means 2-3, not 1-3.

The line has the form of a Markdown link refer…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by JLG81
Comment options

You must be logged in to vote
1 reply
@kojdad-alt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants