-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Sanitize Option Not Affecting Output #41
Comments
Please post code. Everything’s tested well. You need to prove things. Don’t waste folks time. |
Welcome @ryanfitzer! 👋 Please check the readme for the projects and spend some time articulating your question. You aren't using the sanitize option in your example your question doesn't really make sense. |
This comment has been minimized.
This comment has been minimized.
I updated the codesandbox link. Looks like the one I originally copied using the "share" link just gave me the starting example :( |
@ryanfitzer thanks for updating the link, again please read https://unifiedjs.com/learn/recipe/remark-html/#how-to-properly-support-html-inside-markdown |
Thanks for the help! My confusion is due to the following factors:
I updated the codesandbox with a functioning example for anyone who comes across this issue with the same confusion as I did. Again, thanks for the support and for providing the helpful codesandbox template! |
Which readme are you referring to? Generally speaking, there are so many possible use cases, we can't document all of them, and especially not across to 300+ readme files. This is why https://unifiedjs.com/learn/ exists, to capture common use cases as recipes.
This project implements the CommonMark spec. |
the first misconception is that this project is not recommended, per the readme. There is a ton more power if you choose the recommended tools. the second misconception here seems to be whether HTML is dangerous or not. HTML is dangerous. So it’s all removed by default, and you can configure and choose what is allowed or not afterwards, which is documented in the |
Initial checklist
Affected packages and versions
remark-html@16.0.1
Link to runnable example
codesandbox example
Steps to reproduce
Using:
node@20.9.0
npm@10.2.4
next@14.0.4
Expected behavior
The
<video>
element would be included in the output.Actual behavior
The
<video>
is stripped from the output.Runtime
Other (please specify in steps to reproduce)
Package manager
Other (please specify in steps to reproduce)
OS
macOS 13.6.1 (22G313)
Build and bundle tools
Next.js
The text was updated successfully, but these errors were encountered: