Block rule for Wikidot horizontal rules: ---- (four or more hyphens
at the start of a line).
The lexer emits an HR_MARKER token for sequences of four or more -
characters at line start. This rule consumes the marker, any remaining
tokens on the line, and an optional trailing newline, producing a single
horizontal-rule element (rendered as <hr />).
Any text after the ---- on the same line is silently discarded,
matching Wikidot's behaviour.
Block rule for Wikidot horizontal rules:
----(four or more hyphens at the start of a line).The lexer emits an HR_MARKER token for sequences of four or more
-characters at line start. This rule consumes the marker, any remaining tokens on the line, and an optional trailing newline, producing a singlehorizontal-ruleelement (rendered as<hr />).Any text after the
----on the same line is silently discarded, matching Wikidot's behaviour.