preview raw html source code #664
Answered
by
ChristianMurphy
piyushkashyap2001
asked this question in
Q&A
-
I want to create a markdown previewer along with an option to see the raw html source. PFA screenshot for reference. Does react-markdown provide any option to get the raw html source from converted markdown. |
Beta Was this translation helpful? Give feedback.
Answered by
ChristianMurphy
Mar 23, 2021
Replies: 1 comment
-
remark with rehype can be used to do this https://github.com/remarkjs/remark-rehype#use
No, this is a non-goal for react-markdown, it focuses on react as an output. For HTML output, use the remark rehype solution above. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wooorm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
remark with rehype can be used to do this https://github.com/remarkjs/remark-rehype#use
No, this is a non-goal for react-markdown, it focuses on react as an output. For HTML output, use the remark rehype solution above.