Skip to content

Validate MDX syntax before PR merge #2287

Discussion options

You must be logged in to vote

Script / parser, which would validate MDX syntax (e.g. on my CI/CD server) and return back an understandable and actionable response

The MDX parser includes positional information which can be used to determine where the issue happened.
You can see this as an example of this on the MDX site.

understandable and actionable response on what to fix.

Fixable sounds like it's getting into the realm of https://github.com/mdx-js/mdx-analyzer
Which can run as a language server in an editing experience (implementation for VSCode, and is ready to try) or could be run as a CLI (not implemented yet, see mdx-js/mdx-analyzer#292)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@petrnetusil
Comment options

Answer selected by petrnetusil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants