Document client-side evaluation of MDX expressions - #7334
Merged
Conversation
…bsent from static output
Contributor
Author
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
ethanpalm
reviewed
Sep 11, 2026
ethanpalm
approved these changes
Sep 11, 2026
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.
Documentation changes
Adds a note to the reusable snippets page explaining that MDX expressions and imported variables are evaluated in the browser, so their computed values are absent from pre-hydration HTML and offline exports. Non-JS consumers (crawlers, LLM ingestion) see the surrounding text without the values. Prompted by a customer report reproducing this in
mint exportandmint devacross 13 expression forms.Closes
For Reviewers
When reviewing documentation PRs, please consider:
✅ Technical accuracy
✅ Clarity and completeness
✅ User experience
Generated by Mintlify Agent.
Requested by: demarcus@mintlify.com via Slack
Mintlify session: slack_1788189297.206459_D0B7MV5PAA3
Note
Low Risk
Documentation-only change with no runtime or product behavior impact.
Overview
Adds a Note on the reusable snippets page, immediately after the Import variables walkthrough, clarifying that MDX expressions (imported variables and inline expressions like
{1 + 1}) are evaluated in the browser.The note explains that computed values are missing from initial HTML and from offline exports, so crawlers, LLMs, and other non-JS consumers only see the surrounding text. It advises using plain text when values must be visible without JavaScript.
Reviewed by Cursor Bugbot for commit 8e55d00. Bugbot is set up for automated code reviews on this repo. Configure here.