Paragraph text is split into separate tokens when using backslash #1906
Labels
category: inline elements
L2 - annoying
Similar to L1 - broken but there is a known workaround available for the issue
released
Marked version: 1.2.7
Describe the bug
The
inline.text
rules seem to be splitting inline text when it encounters a backslash, resulting in two separate text tokens inside a paragraph token.To Reproduce
Observe on the demo.
First second
results in:But
First\second
results inExpected behavior
While the resulting HTML is the same, this causes issues when using, for instance, a custom
text
renderer. The expected string is instead sliced into multiple parts, which prevents handling of the complete string as a whole.Either the two consecutive text tokens should be joined as they are in the "block" text, or the
inline.text
rules need to be fixed to not stop at the first backslash.The text was updated successfully, but these errors were encountered: