Inline rule for implicit newline-to-line-break conversion.
A single NEWLINE token within inline content typically becomes a
<br /> element. However, the line break is suppressed in several
situations to match Wikidot's behavior:
End of input (no meaningful token follows)
Another NEWLINE follows (this is a paragraph break, not a line break)
A valid block-start token follows at line start (heading, list, etc.)
A BACKSLASH_BREAK token follows (the backslash rule handles the break)
Additional validation is performed for heading and list markers to ensure
they actually form valid block structures (e.g. a heading marker of 7+
characters is not a valid heading).
Inline rule for implicit newline-to-line-break conversion.
A single
NEWLINEtoken within inline content typically becomes a<br />element. However, the line break is suppressed in several situations to match Wikidot's behavior:BACKSLASH_BREAKtoken follows (the backslash rule handles the break)Additional validation is performed for heading and list markers to ensure they actually form valid block structures (e.g. a heading marker of 7+ characters is not a valid heading).