Package-level declarations

Types

Link copied to clipboard
class TableOfContents(val marker: String = "[TOC]") : CustomBlock

A TOC insertion point. Markdown rendering preserves marker; generated entries are not AST children.

Link copied to clipboard
class TocExtension : Parser.ParserExtension, HtmlRenderer.HtmlRendererExtension, MarkdownRenderer.MarkdownRendererExtension, TextContentRenderer.TextContentRendererExtension

Opt-in TOC markers, HTML heading IDs and outlines. See the module README for rendering contracts.

Link copied to clipboard

Where to insert a TOC when the source has no explicit marker.

Functions

Link copied to clipboard
fun ExtensionsBuilder.toc(configure: TocExtension.Configuration.() -> Unit = {})

Creates and appends TocExtension.

Link copied to clipboard
fun tocExtension(configure: TocExtension.Configuration.() -> Unit = {}): TocExtension

Creates TocExtension, snapshotting its configuration.