Skip to main content

Module markdown

Module markdown 

Source
Expand description

The little markdown that hover cards and completion documentation show: ``` fences as code blocks, and inside text code, bold and italic. Anything else stays as written. Frontends turn the blocks into their own widgets (DOM in the browser).

Enums§

Block
A block: a code block from a fence, or a paragraph of inline pieces.
Inline
A piece of inline text.

Functions§

parse
Splits text into blocks. Empty parts are skipped; a paragraph loses its leading and trailing line breaks, a code block its last one.