What's the best way to edit mdx then return the edited mdx as an output? #2160
Answered
by
wooorm
hahnbeelee
asked this question in
Q&A
-
I want to make a remark plugin to edit my AST of mdx content, then I want the edited MDX as output. What's the best way to go about doing this? For most of the processes that edit the AST, the output has been runnable javascript, but I want MDX as the output. |
Beta Was this translation helpful? Give feedback.
Answered by
wooorm
Oct 25, 2022
Replies: 1 comment 1 reply
-
Use unified with remark and |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hahnbeelee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use unified with remark and
remark-mdx
, it enables the MDX syntax in markdown.