Replies: 1 comment 5 replies
-
Hey @achristie! 👋 It looks like you want JSX with Markdown. And likely something to shape the output to guarantee it is valid like |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm curious on the best approach for a syntax like:
just using rehypeRaw and adding the mapping component does work, except, the children of the custom component are also transformed from markdown to html. so the
# Comment
is transformed into<h1>Comment</h1>
.I considered using toMdast and then toMarkdown to get the original string back, but it adds some escape characters and odd line break behavior. In addition to seeming like crazy approach.
What i'm wondering if can i just indicate somehow that whatever is inside that HTML should not get transformed by remark/react-markdown? just like the
code
block does.Of course i could use the code block syntax for this purpose but i'd rather keep this separate from that as I use it already.
Beta Was this translation helpful? Give feedback.
All reactions