Block rule for [[li]]...[[/li]] appearing outside of any [[ul]]/[[ol]] block.
When [[li]] is used without an enclosing list block, Wikidot does NOT
create a list item. Instead, it treats the tags as literal text and
renders the body content without <p> wrapping, using <br /> for
newlines.
Example input:
[[li]] Baz [[/li]]
Rendered output:
[[li]]<br />Baz<br />[[/li]]
This rule exists to correctly consume and reproduce that output. Without
it, the parser would try to match [[li]] against other block rules
and potentially produce incorrect results.
If no [[/li]] closing tag is found, the rule fails.
Block rule for
[[li]]...[[/li]]appearing outside of any[[ul]]/[[ol]]block.When
[[li]]is used without an enclosing list block, Wikidot does NOT create a list item. Instead, it treats the tags as literal text and renders the body content without<p>wrapping, using<br />for newlines.Example input:
Rendered output:
This rule exists to correctly consume and reproduce that output. Without it, the parser would try to match
[[li]]against other block rules and potentially produce incorrect results.If no
[[/li]]closing tag is found, the rule fails.