Skip to main content

Module inline_markup

Module inline_markup 

Source
Expand description

Inline markup for the site’s prose — curriculum, Syntax Guide and news: **strong**, *emphasis*, `code` and [links](/path).

Text is HTML-escaped before any markup is recognised, so lesson prose can say x < y or A & B and never inject markup. Stars follow CommonMark’s flanking rules: a run of * opens emphasis only at the start of a word and closes it only at the end of one, so the star test’s literal stars (A* is B*, S*-D) and arithmetic (2 * 3) stay text, and an unmatched marker is printed as written instead of swallowing the rest of the paragraph.

Functions§

inline_markup_html
Render one paragraph of the site’s prose to HTML.