markdown
, there is no “table of contents” directive, so there are two ways this can be accomplished:mermaid
and rendering charts, or latex
and rendering math). This way, you retain progressive enhancement: every markdown parser will display it as a codeblock at minimum.