flexmark-java table of contents extension
Converts [TOC style] text to TocBlock nodes and
Or Sim TOC tag, which has the following format: [TOC style]: # "Title" and includes all
following lines until a blank line.
Lines after the TOC tag are added to the SimTocContent child node of the SimToc block.
The intention for this tag is to have the SimTocContent updated to reflect the content of the
document.
-
styleconsists of space separated list of options:-
levels=levelListwhere level list is a comma separated list of levels or ranges. Default is to include heading levels 2 and 3. Examples:levels=4include levels 2,3 and 4levels=2-4include levels 2,3 and 4. same aslevels=4levels=2-4,5include levels 2,3,4 and 5levels=1,3include levels 1 and 3levels=-3include levels 1 to 3levels=3-include levels 3 to 6
-
htmlgenerate HTML version of the TOC -
markdowngenerate Markdown version of the TOC -
textto only include the text of the heading -
formattedto include text and inline formatting -
hierarchyto render as hierarchical list in order of appearance in the document -
flatto render as a flat list in order of appearance in the document -
reversedto render as a flat list in order of appearance in the document -
sort-upto render as a flat list sorted alphabetically by heading text only, no inlines -
sort-downto render as a flat list sorted reversed alphabetically by heading text only, no inlines -
bulletto use a bullet list for the TOC items -
numberedto use a numbered list for TOC items
-
| Package | Description |
|---|---|
| com.vladsch.flexmark.ext.toc |