How can I render as raw text for not allowed elements in react markdown? #1235
-
Hi, I'm using react-markdown and retype-raw. I have a question, I think the allowed elements option in react markdown with rehype-raw does not render anything other than allowed elements. however, I would like to show this part as a plain text without rendering it in the html engine. Is there a way to show elements in raw text for not allowed elements? |
Beta Was this translation helpful? Give feedback.
Answered by
ChristianMurphy
Sep 21, 2023
Replies: 1 comment
-
Cross referencing remarkjs/react-markdown#408 which has some previous discussion.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sungwoo91
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cross referencing remarkjs/react-markdown#408 which has some previous discussion.
To recap:
components
https://github.com/remarkjs/react-markdown#appendix-b-components instead ofallowedElements
to custom render the output.