remark-directive plugin with react-markdown #625
-
Hi, I'm trying to add react-directive to my app. Here is the error I get
Here is how I added the plugin to my code
Below version didn't work too (directive not inside an array), and gave the same exact error
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Beta Was this translation helpful? Give feedback.
remark-directive
handles the parsing, not what component it gets turned into (it doesn’t know about React). The error reason that arenderer
is missing, so the solution would be to look into adding a renderer forcontainerDirective
(similar to how you have a renderer forcode
!)