Skip to main content

try_parse_code_span

Function try_parse_code_span 

Source
pub fn try_parse_code_span(
    text: &str,
) -> Option<(usize, &str, usize, Option<(AttributeBlock, &str)>)>
Expand description

Try to parse a code span starting at the current position. Returns (total_len, code_content, backtick_count, attributes) if successful. When trailing attributes are present, attributes carries both the parsed AttributeBlock (for raw-inline / extension-gating decisions) and the raw {...} source slice (for lossless structured emission).