Expand description
Doc → HTML.
The markup is semantic HTML; every element this crate has a word of its own
for carries a md- class, and the styling is the page’s.
A block stands where [crate::serialize] writes it: a blank paragraph is
not written, an indent is clamped the same way, and a blockquote is the
same run of blocks. A block nested under a list item goes inside its <li>;
one nested under anything else goes in a <div class="md-indent">.
A bookmark and a mention are links with their form as a class. Their previews come from the network in the app, and are not fetched here.
A highlighted span of code is a <span class="hl-…"> named by
theme::HighlightKind::name, and Html::stylesheet colors them.
Structs§
- Html
- How a document is written as HTML: what its URLs become, and who renders a fenced block.