Post-processing pass: suppress paragraph wrapping adjacent to div containers.
In Wikidot, when a paragraph is a direct sibling of a <div> block (no other
block elements between them), the <p> wrapping is removed and the inner
elements are promoted to the parent level.
When the unwrapped paragraph follows a div, a line-break element is prepended
to represent the newline between the closing </div> and the bare text.
Examples:
[[div]]inline[[/div]]\n[[div]]\n[[/div]] → no <p> (adjacent to div)
[[div]]inline[[/div]]\n> a\n[[div]]\n[[/div]] → has <p> (blockquote between)
Post-processing pass: suppress paragraph wrapping adjacent to div containers.
In Wikidot, when a paragraph is a direct sibling of a
<div>block (no other block elements between them), the<p>wrapping is removed and the inner elements are promoted to the parent level.When the unwrapped paragraph follows a div, a line-break element is prepended to represent the newline between the closing
</div>and the bare text.Examples:
[[div]]inline[[/div]]\n[[div]]\n[[/div]]→ no<p>(adjacent to div)[[div]]inline[[/div]]\n> a\n[[div]]\n[[/div]]→ has<p>(blockquote between)