You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Expected 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:
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: