Skip to content
Discussion options

You must be logged in to vote

Yes, rehype-sanitize removes 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.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@starpit
Comment options

Comment options

You must be logged in to vote
6 replies
@wooorm
Comment options

@starpit
Comment options

@wooorm
Comment options

@starpit
Comment options

@wooorm
Comment options

Answer selected by starpit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants