Skip to content

fix(docs): MDX 2 parser kills cost-benchmark page on '<1 pp' prose#62

Merged
SamPlvs merged 1 commit into
mainfrom
claude/docs-fix-mdx-less-than
Apr 27, 2026
Merged

fix(docs): MDX 2 parser kills cost-benchmark page on '<1 pp' prose#62
SamPlvs merged 1 commit into
mainfrom
claude/docs-fix-mdx-less-than

Conversation

@SamPlvs
Copy link
Copy Markdown
Owner

@SamPlvs SamPlvs commented Apr 27, 2026

Summary

Mintlify's deploy of PR #60 (commit 6fe485a) failed with "Encountered syntax error(s). Deployment not updated" — the live docs at docs.zerooperators.com stayed on the pre-PR-#60 cached version (still showing the `(pending)` tracking table row instead of the measured `$7.75 / 30%` values).

Same class of bug as PR #58 commit 10c492c (the-team page 404 root cause): MDX 2 treats `<` followed by any non-whitespace character — including digits — as the start of a JSX opening tag. Line 101 of `docs/reference/cost-benchmark.mdx` had `<1 pp` in prose. The `<1` was parsed as a malformed JSX attempt, the file failed compilation, Mintlify silently dropped the deploy.

Fix

One-line: replace `<1 pp` with `under 1 pp`. Natural prose, preserves semantic meaning, no MDX gotcha. Same fix pattern as PR #58.

Sweep

Repo-wide regex sweep (`grep -E '<[0-9]|<[a-zA-Z]' docs/**/*.mdx`) confirmed this is the only remaining unescaped `<digit` or `<letter` pattern in tracked `.mdx` files outside of code fences and valid Mintlify components (``, ``, ``, etc.).

Test plan

🤖 Generated with Claude Code

Same class of bug as PR #58 commit 10c492c (the-team page 404 root
cause): MDX 2 (used by Mintlify) treats '<' followed by any non-
whitespace character as the start of a JSX opening tag — including
digits. Line 101's '**<1 pp**' was parsed as a malformed JSX attempt,
the file failed compilation, Mintlify's deploy of PR #60 (commit
6fe485a) failed with "Encountered syntax error(s). Deployment not
updated", and the live docs at docs.zerooperators.com stayed on the
pre-PR-#60 cached version (still showing the '(pending)' tracking
table row instead of the measured '$7.75 / 30%' values).

Fix: replace '<1 pp' with 'under 1 pp' — natural prose, preserves
semantic meaning, no MDX gotcha. Same fix pattern as PR #58.

Repo-wide regex sweep confirmed this is the only remaining unescaped
'<digit' or '<letter' pattern in tracked .mdx files outside of code
fences and valid Mintlify components (<Note>, <Warning>, <Tabs>, etc).

Mintlify will redeploy automatically on merge.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mintlify
Copy link
Copy Markdown

mintlify Bot commented Apr 27, 2026

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

Project Status Preview Updated (UTC)
personal-6078e1c9 🟢 Ready View Preview Apr 27, 2026, 4:48 PM

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

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying zero-operators with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2b23462
Status: ✅  Deploy successful!
Preview URL: https://02c4b9c9.zero-operators.pages.dev
Branch Preview URL: https://claude-docs-fix-mdx-less-tha.zero-operators.pages.dev

View logs

@SamPlvs SamPlvs merged commit 24d63e2 into main Apr 27, 2026
2 checks passed
@SamPlvs SamPlvs deleted the claude/docs-fix-mdx-less-than branch April 27, 2026 16:52
SamPlvs added a commit that referenced this pull request Apr 30, 2026
fix(docs): MDX 2 parser kills cost-benchmark page on '<1 pp' prose
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