fix: properly escape escaped chars when expression parsing fails#1325
Merged
kevinports merged 3 commits intonextfrom Feb 18, 2026
Merged
Conversation
eaglethrost
reviewed
Feb 9, 2026
eaglethrost
reviewed
Feb 9, 2026
rafegoldberg
pushed a commit
that referenced
this pull request
Feb 18, 2026
## Version 13.2.0 ### ✨ New & Improved * **demo:** add a markdown view in demo app when stripComments is on ([#1348](#1348)) ([a7a8726](a7a8726)) * extend regex to cover more cases ([#1338](#1338)) ([3e8efc8](3e8efc8)) ### 🛠 Fixes & Updates * **mdxish:** add missing toMarkdown extension for MDX expressions in stripComments ([#1347](#1347)) ([02ddfce](02ddfce)) * properly escape escaped chars when expression parsing fails ([#1325](#1325)) ([136f7af](136f7af)) * **mdxish:** tone down empty line addition preprocessing after html blocks ([#1344](#1344)) ([e4e7362](e4e7362)), closes [#1336](#1336) <!--SKIP CI-->
Contributor
This PR was released!🚀 Changes included in v13.2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🧰 Changes
Fixes CX-2874
We saw an issue where if a regular text was wrapped in
{ ... }and it wasnt a valid expression (ie JSON) the MDX espression parser consumes the content as code instead of text which skips inline parsing. So stuff like\<isnt properly escaped to<.The fix was to simply
🧬 QA & Testing
Try typing in something like:
with this fix, you now should not see the backslash any more since it is already treated as properly escaped.