Skip to content

Why is this block considered JSX? #644

Answered by fsmaia
fsmaia asked this question in Q&A
Discussion options

You must be logged in to vote

After a deeper search I found out the root issue:
mdx-js/mdx#611

I'm afraid I won't have an easy fix, since this behavior will be enhanced in a future MDX v2 release, and then Docusaurus v2 will need to update its dependencies along with remark (remark v8 + remark-parsed v8 + mdx v2 + docusaurus v2), or either @microsoft/api-documenter will need to improve its markdown emitter.

If anyone falls in the same situation, I forked remark-remove-comments, and added a handler to remove HTML comments from jsx blocks: https://github.com/fsmaia/remark-remove-comments

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@fsmaia
Comment options

@fsmaia
Comment options

@fsmaia
Comment options

@wooorm
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by wooorm
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