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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I am using
react-markdownversion 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
myRemarkPluginlooks like:It works perfectly good when I am removing the
rehypeSanitizeplugin, but when I add it it doesn't work (it removes the style attributes).How should I make it work with the
rehypeSanitizeplugin "on"?myRemarkPluginfunction, LMK how I should do it correctly.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions