HeadingIdentifierDeduplicationHook

Hook that scans the document for Headings sharing the same base identifier and stores a deterministic, document-order occurrence index for each of them.

The first heading for a given base identifier gets index 0 (no disambiguation needed); each subsequent collision gets 1, 2, ... Renderers can use this index to produce unique anchor identifiers.

See also

Constructors

Link copied to clipboard
constructor(context: MutableContext)

Functions

Link copied to clipboard
open override fun attach(iterator: ObservableAstIterator)

Attaches this hook to the given iterator.