Skip to main content

try_parse_leaf_directive

Function try_parse_leaf_directive 

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

Parses a leaf block directive ::name[content]{attrs} from a full line.

The line must start with :: (exactly two colons, not three). Content in [...] is optional. Attributes in {...} are optional.