⚠️ starting from version 9 all the functions are only accessible via the full module path. For example: md_toc.build_toc(...) is now md_toc.api.build_toc(...) ⚠️

TOC marker

TOC marker#

A TOC marker is a string that marks that the start and the end of the table of contents in a markdown file.

By default it was decided to use [](TOC) as the default TOC marker because it would result invisible in some markdown parsers. In other cases, however, such as the one used by Gitea, that particular TOC marker was still visible. HTML comments seem to be a better solution.

cmark, github, gitlab#


I cannot find the corresponding code, but I found this: