Skip to main content

markdown_inline_code

Function markdown_inline_code 

Source
pub fn markdown_inline_code(input: &str) -> String
Expand description

Wrap untrusted text in a safe inline-code span.

Ordinary values retain the legacy single-backtick representation. Control characters and line endings are folded to spaces, and values containing backticks use a delimiter longer than every run in the value. Padding keeps the delimiter separate from a leading or trailing backtick; CommonMark removes that padding when the span is rendered.