-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relax HTML allowlist #301
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I would advocate for allowing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Marp Core's default HTML allowlist is only allowed
<br>
tag. It's definitely safe but but this default set is not matching with real use case. A lot of Marp users enjoy using custom HTML tags.It is better to update default allowlist of HTML to include allowed elements in common Marp slides and Web services. e.g.
<div>
,<span>
, and HTML elements that are converted by Markdown.https://github.com/gjtorikian/html-pipeline/blob/HEAD/lib/html/pipeline/sanitization_filter.rb is mentioned as GitHub style sanitization from some famous Markdown parsers. (remark, marked-sanitizer-github)
The text was updated successfully, but these errors were encountered: