Repository navigation
fix: resolve MDX values in Markdown exports - #718
Merged
abernier merged 2 commits intoOct 13, 2026
Merged
Conversation
abernier
added this pull request to stack #719
October 13, 2026 16:09
abernier
force-pushed
the
codex/next-markdown-exports
branch
from
October 13, 2026 16:13
072321c to
343f8cf
Compare
abernier
marked this pull request as ready for review
October 13, 2026 16:17
Merged
This branch was successfully deployed
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.
Summary
Markdown exports currently expose unresolved MDX expressions such as
{spacing['4'].value}. Resolve expressions and configured components through the Next application so Copy Page,/<page>.md, andllms-full.txtreturn the same rendered Markdown, including values inside tables, links, and commands.Preserve literal code and fence metadata, expose static representations of built-in components, and support
markdownComponentsoverrides for interactive components. Sources remain unchanged; unresolved expressions fail with document context. Markdown route handlers use the same Next builder as the website and HTML fragments; React stream serialization happens inside those handlers.Stack
codex/next-fragment-rendering), which targetsmain.main.Pre-merge review
Generated
Entrieslinks now includeBASE_PATH, matching authored links and website navigation. Regression tests cover a configured, empty, and absent prefix, preserve group filtering, and check that authored links are not prefixed twice.Validation
pnpm run LGTMon343f8cfc: typecheck, lint/format, registry validation, 681 passing unit/integration tests (4 skipped), and all 120 Playwright tests passed.VersionSwitcher.tsxremains; no lint errors.