Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

Fix MDX parsing error in CLI changelog (2025-11-14)

Summary

Fixes an MDX parsing error in the CLI changelog that was causing fern generate --docs --preview to fail with "Could not parse expression with acorn". The issue was introduced in PR #2063 when the 2025-11-14.mdx changelog was added.

The problem: MDX treats curly braces {...} as JSX expressions. The text {API name} and X/Y in the changelog entry were being interpreted as code rather than literal text, causing a parse error.

The fix: Wrapped both placeholders in inline code backticks (`{API name}` and `X/Y`), which is the standard MDX approach for escaping special characters and is semantically appropriate since these are literal placeholders.

Review & Testing Checklist for Human

  • Verify the changelog entry at /learn/cli-api-reference/cli-changelog renders correctly with the inline code styling
  • Confirm CI passes, especially the docs generation step that was previously failing
  • Check the preview deployment to ensure the changelog page displays properly

Notes

Wrap {API name} and X/Y in inline code to prevent MDX parser from treating curly braces as JSX expressions, which was causing 'Could not parse expression with acorn' error during docs generation.

Co-Authored-By: Chris McDonnell <[email protected]>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions
Copy link
Contributor

devin-ai-integration bot added a commit that referenced this pull request Nov 18, 2025
Wrap {API name} and X/Y placeholders in backticks to prevent MDX parser
from treating curly braces as JSX expressions. This fixes the 'Could not
parse expression with acorn' error that was blocking CI.

This fix is bundled with the Fern Editor component updates to unblock CI
on this PR. The same fix was proposed in PR #2065 but hasn't been merged yet.

Co-Authored-By: Chris McDonnell <[email protected]>
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