Replies: 1 comment
-
Welcome @Sagie501! 👋 I'd recommend taking a look at this related discussion https://github.com/orgs/rehypejs/discussions/158 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I am using
react-markdown
version 9.0.0. I am also using the following plugins:rehype-raw
(version 7.0.0),rehype-sanitize
(version 6.0.0),remark-gfm
(version 4.0.0),remark-directive
(version 3.0.0).And this is how I am using it:
I want to create a custom directive like the follow:
And this is how
myRemarkPlugin
looks like:It works perfectly good when I am removing the
rehypeSanitize
plugin, but when I add it it doesn't work (it removes the style attributes).How should I make it work with the
rehypeSanitize
plugin "on"?myRemarkPlugin
function, LMK how I should do it correctly.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions