Cannot add my React Component into components={}
#1223
Replies: 1 comment 6 replies
-
Welcome @piscopancer! 👋 If you directly want to support JSX, consider using https://mdxjs.com/ (which builds on the same libraries and has the same maintainers). If you want to do this through markdown, this can be supported through directives (with different syntax than what you show) https://github.com/remarkjs/remark-directive |
Beta Was this translation helpful? Give feedback.
-
I cannot register my custom component when tag is
commentblock
.I have already figured out that a
<CommentBlock>💖</CommentBlock>
retrieved from a markdownis then transformed by react-markdown into a
<commentblock>💖</commentblock>
tag on the page. Now can you explain how I can replace thiscommentblock
with my own react component?Beta Was this translation helpful? Give feedback.
All reactions