Fix MDX parsing errors in CodeBlock components#140
Open
mintlify[bot] wants to merge 1 commit intomainfrom
Open
Fix MDX parsing errors in CodeBlock components#140mintlify[bot] wants to merge 1 commit intomainfrom
mintlify[bot] wants to merge 1 commit intomainfrom
Conversation
…code blocks The <CodeBlock> component is not a standard Mintlify component and caused acorn parsing errors when code contained curly braces (interpreted as JSX expressions). Converted all <CodeBlock> instances to standard fenced code blocks inside <CodeGroup> wrappers. Files fixed: - developers/developer-guides/integrating-initia-apps/initiadex.mdx - developers/developer-guides/vm-specific-tutorials/movevm/creating-move-coin.mdx Generated-By: mintlify-agent
Contributor
Author
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two MDX files failed
mint validateandmint broken-linksdue to acorn parsing errors. The<CodeBlock>component is not a standard Mintlify component, and when TypeScript/JavaScript code containing curly braces{}was placed inside it, MDX interpreted the braces as JSX expressions, causing parse failures.Broken links found
developers/developer-guides/integrating-initia-apps/initiadex.mdxCould not parse expression with acornat line 52:5<CodeBlock>component containing TS code with{}braces parsed as JSX expressions<CodeBlock>components with standard fenced code blocksdevelopers/developer-guides/vm-specific-tutorials/movevm/creating-move-coin.mdxCould not parse expression with acornat line 43:5<CodeBlock>with TS code containing{}<CodeBlock>components with standard fenced code blocksBoth files were also flagged as warnings in
mint validatesince the parsing errors made them invisible to the build:"developers/developer-guides/vm-specific-tutorials/movevm/creating-move-coin" is referenced in the docs.json navigation but the file does not exist."developers/developer-guides/integrating-initia-apps/initiadex" is referenced in the docs.json navigation but the file does not exist.What changed
Converted all
<CodeBlock filename="X" language="Y">components to standard Mintlify fenced code blocks (```Y X) inside<CodeGroup>wrappers. This is the documented Mintlify pattern for code groups and avoids MDX/JSX expression parsing issues.Validation
Both
mint validateandmint broken-linkspass after these changes.