Skip to main content

Module markdown

Module markdown 

Source
Expand description

Markdown output helpers.

Untrusted content (crate names, advisory titles, license strings) flows into PR comments. To prevent Markdown/HTML injection we escape such content before interpolation. This is a defensive output-encoding concern, not cosmetics.

Functionsยง

escape
Escape a string for safe inline rendering inside Markdown.
escape_code
Escape for use inside an inline code span (backticks).