Skip to main content

escape_reference

Function escape_reference 

Source
pub fn escape_reference(value: &str) -> String
Expand description

Escape a reference for Links Notation.

References need escaping when they contain spaces, quotes, parentheses, colons, or newlines.

§Arguments

  • value - The value to escape

§Returns

The escaped reference string