Skip to content

fix(docs): replace <Info> callout inside <Step> to fix Chinese encoding garbled text - #94643

Closed
cxbAsDev wants to merge 2 commits into
openclaw:mainfrom
cxbAsDev:fix/issue-94504-chinese-character-encoding
Closed

cxbAsDev wants to merge 2 commits into
openclaw:mainfrom
cxbAsDev:fix/issue-94504-chinese-character-encoding

Conversation

@cxbAsDev

@cxbAsDev cxbAsDev commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fix Chinese character encoding garbled text on /zh-CN/start/onboarding page 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:

pnpm install --frozen-lockfile --ignore-scripts
node scripts/check-docs-mdx.mjs docs/start

Evidence after fix:

Docs MDX check passed (14 files, 568ms).

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.mjs passes 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
  • Other <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.

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]>
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels Jun 18, 2026
@clawsweeper

clawsweeper Bot commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor

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
Relationship: duplicate
Canonical: #94510
Summary: This PR and the canonical candidate target the same docs/start/onboarding.md inline Info callout for the same zh-CN onboarding rendering report; the canonical candidate keeps the callout as block-form Info.

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 details

Best 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 v2026.6.9 still contain the inline Info-in-Step source line, and the live zh-CN docs page still renders that callout with corrupted Info markup under UTF-8 headers.

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:

  • Current source still has the affected inline callout: Current main has <Info>This step is optional</Info> inside the CLI <Step>, matching the reported source shape. Public docs: docs/start/onboarding.md. (docs/start/onboarding.md:82, b15f745a605c)
  • This PR changes the same line to italic Markdown: The PR diff replaces the inline Info callout with *This step is optional.*, avoiding the bad inline component shape but dropping callout styling. Public docs: docs/start/onboarding.md. (docs/start/onboarding.md:82, 76c15736f3df)
  • Canonical candidate preserves the Info callout: The canonical candidate changes the same source line to multiline block-form <Info>, which keeps callout semantics while removing the inline JSX shape. Public docs: docs/start/onboarding.md. (docs/start/onboarding.md:82, 7931226adfb8)
  • Canonical candidate is viable: Live GitHub metadata shows the canonical candidate is open, cleanly mergeable, maintainer-modifiable, and not draft. (7931226adfb8)
  • Live docs reproduce the reported symptom: The live zh-CN onboarding page is served as UTF-8 and contains clean translated Info source text, but the rendered output still includes oc-callout-info-8-3-k-d and corrupted Info text.
  • Latest release is not fixed: The latest release tag v2026.6.9 still contains the same inline Info line, so one candidate still needs to land. Public docs: docs/start/onboarding.md. (docs/start/onboarding.md:82, c645ec4555c0)

Likely related people:

  • sebslight: The Step-based onboarding area and inline Info-in-Step shape appear in February onboarding docs commits authored as Seb Slight/Sebastian. (role: onboarding docs feature-history contributor; confidence: high; commits: 3011b00d39e9, c8f4bca0c421, c18452598aa0; files: docs/start/onboarding.md, docs/docs.json)
  • Vincent Koc: Current blame for the affected block points to the recent release closeout forward-port, and path history shows recent work on the same docs file. (role: recent docs area contributor; confidence: medium; commits: 0f8df48a91dd, c645ec4555c0; files: docs/start/onboarding.md)
  • steipete: Recent history for docs/start/onboarding.md includes several onboarding, CLI, setup wizard, and security wording updates adjacent to the affected page. (role: recent onboarding docs contributor; confidence: medium; commits: 7807e1ef0516, 5287ae3c06cf, 1dd4f92ea275; files: docs/start/onboarding.md)

Codex review notes: model internal, reasoning high; reviewed against b15f745a605c.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jun 18, 2026
@cxbAsDev cxbAsDev closed this Jun 24, 2026
@cxbAsDev
cxbAsDev deleted the fix/issue-94504-chinese-character-encoding branch July 15, 2026 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chinese character encoding issues

1 participant