Skip to content

Update from code changes: document code inside MDX fragments - #7209

Open
mintlify[bot] wants to merge 2 commits into
mainfrom
mintlify/b021ee58
Open

Update from code changes: document code inside MDX fragments#7209
mintlify[bot] wants to merge 2 commits into
mainfrom
mintlify/b021ee58

Conversation

@mintlify

@mintlify mintlify Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Code fences and inline code inside <MDX> now compile exactly like code at the page root. Raw <, >, {, and } in fragment code no longer break the page, and character references like &lt; decode to their characters per JSX text semantics. Previously there was no way to render a literal < inside fragment code at all.

https://github.com/mintlify/mint/pull/10605

Changes

  • Added a "Code in fragments" section to the <MDX> component page with a placeholder-style code example.
  • Noted that character references in fragment code decode, and how to spell a literal &lt;.
  • Mirrored the section in the Spanish, French, and Chinese translations.

Note

Low Risk
Documentation-only updates with no runtime or build logic changes.

Overview
Documents new <MDX> fragment code behavior: fences and inline code inside fragments compile like page-root code, and raw <, >, {, and } are allowed without escaping.

Adds a Code in fragments section (with a conditional git clone placeholder example) plus notes on character-reference decoding (&lt;<, literal &lt; via &amp;lt;). The same section is added in Spanish, French, and Chinese; ES/FR frontmatter descriptions are slightly shortened.

Reviewed by Cursor Bugbot for commit 20a5a84. Bugbot is set up for automated code reviews on this repo. Configure here.

@mintlify

mintlify Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
mintlify 🟢 Ready View Preview Sep 1, 2026, 5:29 AM

@mintlify

mintlify Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
tomee 🟡 Building Sep 1, 2026, 5:27 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

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.

0 participants