Skip to main content

Module links

Module links 

Source
Expand description

ADR-0089 Phase 5: intra-doc link rewriting.

Rewrites bare reference-style links ([Name], [Name::method], [fn name], [struct Name], [enum Name], [interface Name], [derive Name], [const Name]) in a doc body into ordinary Markdown links pointing at the rendered page for the named item.

Anything that doesn’t resolve to a known item is left alone, exactly as rustdoc does. This is a single pre-render pass — the doc bodies themselves are immutable inputs from the AST.

Structs§

LinkTable
A name-resolution table: identifier → (kind label, slug).

Functions§

rewrite
Rewrite intra-doc references in a markdown body.