wdpr
    Preparing search index...

    Module parser/rules/block/clear-float

    Block rule for Wikidot's float-clearing syntax: ~~~~.

    Four or more tilde characters (~) at the start of a line produce a <div style="clear: both;"> (or left/right) element. This is commonly used after floated images or divs to prevent subsequent content from wrapping alongside them.

    Variants:

    • ~~~~ (or more tildes) -- clear: both
    • ~~~~< -- clear: left
    • ~~~~> -- clear: right

    Three tildes (~~~) do NOT trigger this rule in Wikidot -- the minimum is four. The tilde count is validated at parse time even though the lexer already tokenises valid sequences, as a defensive check.

    Variables

    clearFloatRule