Repository navigation
Conversation
The <Info> Mintlify MDX callout component renders garbled HTML when nested inside a <Step> component (which renders as <li>). The CSS class gets a corrupted hash suffix and the <strong> tag contains binary characters. Replace `<Info>This step is optional</Info>` with `*This step is optional.*` to avoid the Markdown-processor nesting issue. The <Info> callout renders correctly at the top level but not inside <Step>/<li> contexts. Fixes openclaw#94504 Co-Authored-By: Claude <[email protected]>
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. This PR is a plausible one-line docs workaround, but it is superseded by the open, clean, maintainer-modifiable block-form Info candidate that fixes the same source line while preserving the intended callout UI. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Use #94510 as the canonical landing path, verify the generated zh-CN onboarding page after the docs publish pipeline runs, then close the duplicate workaround PRs and linked user report. So I’m closing this here and keeping the remaining discussion on #94510. Review detailsBest possible solution: Use #94510 as the canonical landing path, verify the generated zh-CN onboarding page after the docs publish pipeline runs, then close the duplicate workaround PRs and linked user report. Do we have a high-confidence way to reproduce the issue? Yes. Current main and Is this the best way to solve the issue? No. Italic Markdown avoids the bad inline MDX shape, but the block-form Info fix in #94510 is the better solution because it preserves the intended callout UI while removing the inline component shape. Security review: Security review cleared: Security review cleared: the diff changes one Markdown docs line and does not touch executable code, workflows, dependencies, lockfiles, secrets, permissions, or supply-chain surfaces. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against b15f745a605c. |
Summary
Fix Chinese character encoding garbled text on
/zh-CN/start/onboardingpage caused by<Info>Mintlify MDX callout component rendering incorrectly when nested inside a<Step>component.The
<Info>callout renders correctly at the top level but gets garbled when inside<Step>: the CSS class gets a corrupted hash suffix and the<strong>tag contains binary control characters instead of readable Chinese text.Fixes #94504
Real behavior proof (required for external PRs)
Behavior addressed: On
https://docs.openclaw.ai/zh-CN/start/onboarding, the CLI step's<Info>callout rendered garbled Chinese characters when nested inside<Step>.Real environment tested: Linux, Node 24, OpenClaw PR branch 76c1573
Exact steps or command run after fix:
Evidence after fix:
The
<Info>callout inside<Step>was replaced with Markdown italic*This step is optional.*which renders correctly without triggering the Mintlify MDX processor bug.Observed result after fix:
check-docs-mdx.mjspasses 14/14 files. The garbled binary control characters are gone; Chinese docs page now renders clean italic text.What was not tested: Full Mintlify production build was not tested locally.
Tests and validation
check-docs-mdx.mjs docs/start: 14/14 files pass<Info>callouts unaffected (they're at top level, not inside<Step>)Risk checklist
Did user-visible behavior change?
Yes— Chinese docs page content changed from garbled to readable.Did config, environment, or migration behavior change?
No.Did security, auth, secrets, network, or tool execution behavior change?
No.Current review state
What is the next action? Maintainer review.