Skip to main content

Module markdown

Module markdown 

Source

Structs§

Section
One top-level section of the document, its blocks as render draws them, with the source lines it came from.

Enums§

SectionKind
What a section is in the Markdown, so a consumer can pair and label sections without parsing again.

Functions§

render
Renders GitHub-flavoured Markdown into a document at settings.width; images and links are never fetched.
render_sections
The document’s top-level sections, each with the source lines it came from, for a consumer that diffs or pairs them. A list gives one section per top-level item, nested items staying inside theirs; the footnote definitions are one last section. No blank line separates or surrounds them: render puts one between sections and between loose items.