wdpr
    Preparing search index...

    Module parser/rules/inline/strikethrough

    Parses the Wikidot strikethrough formatting syntax: --text--.

    Strikethrough text is delimited by double hyphens. However, the -- token has dual meaning in Wikidot: it can be either a strikethrough marker or an em-dash. The disambiguation rule is:

    • If a matching closing -- is found on the same line AND the closing marker is NOT preceded by whitespace, it is treated as strikethrough.
    • Otherwise, the -- is converted to an em-dash character (U+2014).

    This means --word-- produces strikethrough, but -- word -- produces two em-dashes with "word" between them.

    Produces a "container" AST element with type: "strikethrough", or a "text" element containing the em-dash character.

    Variables

    strikethroughRule