Skip to main content

Module mark

Module mark 

Source
Expand description

Parsing for mark/highlight (==text==).

This is a Pandoc non-default extension. Syntax: ==text== produces highlighted text.

Rules (Pandoc parity):

  • Must start with exactly two = delimiters
  • Content cannot be empty or all whitespace
  • Content cannot start or end with whitespace
  • Closers are matched greedily at the first valid ==

Functionsยง

emit_mark
Emit a mark node with its content.
try_parse_mark
Try to parse mark/highlight (==text==). Returns: (total_len, inner_content)