how do I use the remarkGfm to make it render into my jsx? #2326
-
I converted the.mdX document to a jsx string with compile configuration remarkGfm on the front end. Then how do I configure it to render directly in the jsx file as a component? env:vite+react
I can manually create a.jsx file and paste it into it, but how to go through the code to practice? thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Welcome @jiuyuer!
It sounds like you are using Vite?
It's unclear what your desired use case and work flow is. |
Beta Was this translation helpful? Give feedback.
Welcome @jiuyuer!
remark-gfm
is a parser, it does not render anything.MDX can though.
It sounds like you are using Vite?
If so consider using the Vite integration https://mdxjs.com/docs/getting-started/#vite
Otherwise if you want to do fully custom and client side rendering use
evaluate
orevaluateSync
https://mdxjs.com/packages/mdx/#evaluatefile-optionsIt's unclear what your desired use case and work flow is.
For the community to be able to offer su…