Skip to main content

Crate adocers_render_core

Crate adocers_render_core 

Source
Expand description

What the AsciiDoc back ends have in common.

adocers-html renders a document as a page and adocers-typst typesets it as a PDF. Neither depends on the other, and this crate is what they agree on: the section numbers a document shows, the attributes it puts under its title, the icon an admonition is marked with, and the SVG a mermaid block is drawn as.

Everything here is about the document, not about either output format — which is why both back ends can read it and why a third one could.

Modules§

escape
Escaping text for markup.
icons
Admonition icons.
mermaid
Drawing a mermaid diagram here rather than in the reader’s browser.
metadata
Which header attributes are facts about the document, and how they read.
numbering
Which sections are numbered, and what number each one shows.