Skip to content

fix: repair MDX-breaking angle brackets in generated SDK docs - #189

Merged
anttiviljami merged 1 commit into
mainfrom
claude/tender-ride-rvoit9
Nov 11, 2026
Merged

anttiviljami merged 1 commit into
mainfrom
claude/tender-ride-rvoit9

Conversation

@anttiviljami

Copy link
Copy Markdown
Member

Problem

main build fails since #187 (SyntaxError: Expected corresponding JSX closing tag for <schema>/<i>/<seq>/<SecretString>/<Link>/<label> in 7 docs/sdk/clients/*.md files).

Cause: sdk-js generated docs now contain <placeholder> split out of inline code (```List<Link>`` ``) and bare p`, which `scripts/update-sdk-docs.sh` didn't handle (single-letter names like `` were treated as real HTML tags).

Fix

scripts/update-sdk-docs.sh:

  • repair split spans (List`<T>`` `` → List )
  • don't escape <x> already inside an inline code span
  • treat single-letter tags (<i>, <b>, …) as HTML only if a closing tag is on the same line

Regenerated affected docs (8 files, 1-12 lines each).

Test plan

  • Reproduced the 7 CI errors on main with @mdx-js/mdx@1 + babel JSX parse; 0 failures on all 112 sdk/cli docs after fix
  • CI build passes

Note: root cause is upstream in the sdk-js doc generator; this makes the docs build resilient.


Generated by Claude Code

@anttiviljami
anttiviljami merged commit e01d204 into main Nov 11, 2026
1 check passed
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