Skip to content

Conversation

@maximilianfalco
Copy link
Contributor

@maximilianfalco maximilianfalco commented Dec 12, 2025

PR App Fix RM-14615

🧰 Changes

We were seeing cases where magic blocks that uses the code cases was wrapped in paragraph nodes which caused invalid HTML and values like props not being passed down correctly which resulting in errors and causing the page to not be renderable.

CodeTabs were also being split into two components like this:

Before After
Screenshot 2025-12-12 at 11 15 57 Screenshot 2025-12-12 at 11 55 19

This PR fixes this by detecting when code-tabs nodes are inserted into paragraphs and lifting them out to the root level, preventing the paragraph wrapper and ensuring props are passed correctly.

Note

The fix only affects code tabs, so other block-level elements (like tables) are unchanged.

🧬 QA & Testing

Use the attached md file in the linear ticket. Paste it into raw mode and make sure no errors are thrown.

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