Skip to content

docs: document MDX comment syntax#6029

Merged
ethanpalm merged 2 commits into
mainfrom
mintlify/0dae60d6
May 29, 2026
Merged

docs: document MDX comment syntax#6029
ethanpalm merged 2 commits into
mainfrom
mintlify/0dae60d6

Conversation

@mintlify
Copy link
Copy Markdown
Contributor

@mintlify mintlify Bot commented May 29, 2026

Summary

Adds a brief "Comments" section to the text formatting page documenting the MDX {/* ... */} comment syntax for non-rendering source notes.

Changes

  • create/text.mdx: New "Comments" section with single-line and multi-line examples, plus a callout that HTML-style <!-- --> comments are not supported.

Context

Recent assistant conversations showed users asking how to add reviewer notes or to-dos in MDX that don't render. The syntax was referenced in deploy/ci.mdx (Vale integration) but never explained as a general authoring feature, leading to unanswered queries.


Note

Low Risk
Documentation-only additions with no runtime, auth, or data-handling impact.

Overview
Adds a Comments section to the text-formatting guide (create/text.mdx and Spanish/French equivalents) explaining how to use MDX {/* ... */} for source-only notes, TODOs, and reviewer comments that do not appear on the published page.

The section includes single- and multi-line examples and a Warning that HTML <!-- --> comments are not supported in MDX. Localized pages use the same content with a comments anchor wrapper where the rest of those guides use div IDs for headings.

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

@mintlify
Copy link
Copy Markdown
Contributor Author

mintlify Bot commented May 29, 2026

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

Project Status Preview Updated (UTC)
mintlify 🟢 Ready View Preview May 29, 2026, 4:16 PM

@mintlify
Copy link
Copy Markdown
Contributor Author

mintlify Bot commented May 29, 2026

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

Project Status Preview Updated (UTC)
testsignup415 🟢 Ready View Preview May 29, 2026, 4:19 PM

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

@ethanpalm ethanpalm merged commit 1db9c7e into main May 29, 2026
5 checks passed
@ethanpalm ethanpalm deleted the mintlify/0dae60d6 branch May 29, 2026 17:43
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.

2 participants