pub fn try_parse_inline_directive(
text: &str,
pos: usize,
) -> Option<ParsedDirective>Expand description
Parses an inline directive :name[content]{attrs} starting at pos.
The name must be alphabetic (plus hyphens). Content in [...] is required.
Attributes in {...} are optional.
Returns the parsed directive or None if the text doesn’t match.