Skip to main content

Module markdown

Module markdown 

Source
Expand description

CommonMark syntax facts every Markdown writer in the family needs.

Each library renders its own document model, and how it styles a run is its own business. Where an emphasis delimiter may stand is not — it is a property of CommonMark, and a writer that gets it wrong prints its asterisks as text. This module answers that one question so the three writers cannot drift on it.

std-only, like the rest of the crate root.

Functions§

emphasis_span
The part of a styled run that emphasis delimiters (*, **, ~~) can wrap, given the characters the run lands between, or None when no part can.