-
|
Without rehype-sanitize, the following markdown correctly passes the
However, when the rehype-sanitize plugin is added, the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
|
@starpit that are a lot of ways remark and rehype can be combined. It's hard to offer a suggestion without knowing what you are trying and what your end goal is.
and maybe some context on your goal? |
Beta Was this translation helpful? Give feedback.
-
|
Yes, |
Beta Was this translation helpful? Give feedback.
Yes,
rehype-sanitizeremoves classes. Classes are a security vector. You can configure rehype-sanitize to allow certain things. Example: https://github.com/rehypejs/rehype-sanitize/tree/docs#example-syntax-highlighting.