wdpr
    Preparing search index...

    Module parser/rules/block/table

    Block rule for Wikidot pipe-syntax tables.

    Wikidot tables are written using || delimiters at the start of a line:

    || Cell 1 || Cell 2 ||
    || Cell 3 || Cell 4 ||

    Cell variants:

    • || -- normal cell (<td>)
    • ||~ -- header cell (<th>)
    • ||< -- left-aligned cell
    • ||> -- right-aligned cell (TABLE_RIGHT)
    • ||= -- center-aligned cell

    Colspan is achieved by using multiple consecutive || before content: |||| = colspan 2, |||||| = colspan 3, etc.

    Key Wikidot behaviour:

    • Cells MUST be terminated by another || (or variant). Unterminated cells (reaching end of line without a closing ||) are discarded.
    • If all cells in a row are unterminated, one empty cell is kept.
    • Content within cells supports inline markup (bold, links, etc.).
    • Leading and trailing whitespace in cell content is trimmed.

    The table element carries _source: "pipe" in its attributes to distinguish it from block-syntax tables ([[table]]).

    Variables

    tableRule