-
The following block is being parsed as a JSX node:
Shouldn't it be expanded into other nodes? IMHO there is no JSX in there 😄 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
By who? Where? What? Remark doesn't know about jsx. |
Beta Was this translation helpful? Give feedback.
-
After a deeper search I found out the root issue: 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 ( If anyone falls in the same situation, I forked |
Beta Was this translation helpful? Give feedback.
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