Skip to main content

Module superscript

Module superscript 

Source
Expand description

Parsing for superscript (^text^)

This is a Pandoc extension. Syntax: ^text^ produces superscript text.

Rules:

  • Must have exactly 1 caret on each side
  • Content cannot be empty
  • Carets cannot have whitespace immediately inside
  • Must not be confused with ^[…] (inline footnotes)

Functions§

emit_superscript
Emit a superscript node with its content
try_parse_superscript
Try to parse superscript (^text^) Returns: (total_len, inner_content)