Skip to main content

Module strikeout

Module strikeout 

Source
Expand description

Parsing for strikeout (strikethrough)

This is a Pandoc extension that’s also part of GitHub Flavored Markdown. Syntax: text produces strikethrough text.

Rules:

  • Must have exactly 2 tildes on each side
  • Content cannot be empty
  • Tildes cannot have whitespace immediately inside

Functions§

emit_strikeout
Emit a strikeout node with its content
try_parse_strikeout
Try to parse strikeout (text) Returns: (total_len, inner_content)