Skip to main content

try_parse_container_open

Function try_parse_container_open 

Source
pub fn try_parse_container_open(line: &str) -> Option<(ParsedDirective, usize)>
Expand description

Parses a container directive opening fence :::name{attrs}.

Returns the parsed directive and the colon count (for matching the close fence). The line must start with 3+ colons followed by a name.