Skip to content

fix(mdxish): terminal custom component makes page crashes#1355

Draft
Jadenzzz wants to merge 4 commits intonextfrom
jayden/cx-2902-terminal-custom-component-breaks-completely-in-mdx-ish
Draft

fix(mdxish): terminal custom component makes page crashes#1355
Jadenzzz wants to merge 4 commits intonextfrom
jayden/cx-2902-terminal-custom-component-breaks-completely-in-mdx-ish

Conversation

@Jadenzzz
Copy link
Copy Markdown
Contributor

@Jadenzzz Jadenzzz commented Feb 23, 2026

PR App Fix RM-XYZ

🧰 Changes

Root cause

Terminal components from marketplace need to receive multiline string children, but the current markdown processing corrupts newlines through:

  • micromark MDX tokenizer - exist in newlines in expressions, causing parse errors
  • remarkBreaks - splits newlines into separate text nodes with
    tag
  • rehypeRaw - normalizes \n to spaces

Current solution

  • Replace newlines with a constant and collpase content into single line
  • Make sure passing string instead of html nodes to component like Terminal

Describe your changes in detail.

🧬 QA & Testing

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant