wdpr
    Preparing search index...

    Module parser/rules/block/align

    Block rule for Wikidot alignment containers.

    Wikidot provides a shorthand bracket syntax for wrapping content in a directional alignment container:

    [[>]]        ... [[/>]]        right-aligned
    [[<]] ... [[/<]] left-aligned
    [[=]] ... [[/=]] center-aligned
    [[==]] ... [[/==]] justify-aligned

    Each pair acts as a block-level wrapper. The opening tag must appear at the start of a line and be followed by a newline. Body content is parsed recursively as block-level markup, and the matching closing tag terminates the container.

    The resulting AST node is a generic container element whose type field carries the alignment direction (e.g. { align: "right" }).

    Variables

    alignRule