Skip to main content

parse_inline_text

Function parse_inline_text 

Source
pub fn parse_inline_text(
    builder: &mut GreenNodeBuilder<'_>,
    text: &str,
    config: &ParserOptions,
    _allow_reference_links: bool,
)
Expand description

Parse inline elements from text content nested inside a link/image/span.

Used for recursive inline parsing of link text, image alt, span content, etc. Suppresses constructs that would create nested links (CommonMark ยง6.3 forbids links inside links), notably extended bare-URI autolinks under GFM.

The _allow_reference_links parameter is accepted for compatibility and is currently unused.