Skip to content

how do I use the remarkGfm to make it render into my jsx? #2326

Answered by ChristianMurphy
jiuyuer asked this question in Q&A
Discussion options

You must be logged in to vote

Welcome @jiuyuer!

how do I use the remarkGfm to make it render into my jsx?

remark-gfm is a parser, it does not render anything.
MDX can though.

Then how do I configure it to render directly in the jsx file as a component?

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 or evaluateSync https://mdxjs.com/packages/mdx/#evaluatefile-options

I can manually create a.jsx file and paste it into it, but how to go through the code to practice?

It's unclear what your desired use case and work flow is.
For the community to be able to offer su…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by ChristianMurphy
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