Skip to content

fix(mdxish): Unclosed curly brace and callout fail to render on MDXish#1333

Merged
Jadenzzz merged 3 commits intoreadmeio:nextfrom
Jadenzzz:jayden/cx-2896-unclosed-curly-brace-and-callout-fail-to-render-on-mdxish
Feb 15, 2026
Merged

fix(mdxish): Unclosed curly brace and callout fail to render on MDXish#1333
Jadenzzz merged 3 commits intoreadmeio:nextfrom
Jadenzzz:jayden/cx-2896-unclosed-curly-brace-and-callout-fail-to-render-on-mdxish

Conversation

@Jadenzzz
Copy link
Copy Markdown
Contributor

PR App Fix RM-XYZ

🧰 Changes

The escapeUnbalancedBraces() function in preprocess-jsx-expressions.ts had an edge case where it can't handle multi-byte characters such as emoji

This change converts the content to an array of unicode code points once at the start to ensure multi-byte characters are handled properly

Describe your changes in detail.

🧬 QA & Testing

});
});

it('should escape unclosed braces in content with emojis', () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add more tests for other special characters, such as math notations, mandarin characters, etc?
E.g. 汉字 𠮷 {

@eaglethrost
Copy link
Copy Markdown
Contributor

Code looks good, just requested more tests! Sorry this was an oversight on my part 🙏

@Jadenzzz Jadenzzz marked this pull request as ready for review February 12, 2026 04:36
Jadenzzz and others added 2 commits February 12, 2026 11:36
Co-authored-by: Dimas Putra Anugerah <63914983+eaglethrost@users.noreply.github.com>
@Jadenzzz Jadenzzz merged commit dbca5fa into readmeio:next Feb 15, 2026
6 checks passed
@Jadenzzz Jadenzzz deleted the jayden/cx-2896-unclosed-curly-brace-and-callout-fail-to-render-on-mdxish branch February 15, 2026 12:56
rafegoldberg pushed a commit that referenced this pull request Feb 18, 2026
## Version 13.1.4
### 🛠 Fixes & Updates

* **mdxish:** builtin tabs component rendering ([#1346](#1346)) ([7bd6c41](7bd6c41))
* force release ([0352bd0](0352bd0))
* **mdxish:** Unclosed curly brace and callout fail to render on MDXish ([#1333](#1333)) ([dbca5fa](dbca5fa))

<!--SKIP CI-->
@rafegoldberg
Copy link
Copy Markdown
Contributor

This PR was released!

🚀 Changes included in v13.1.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants