-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
<video> tags not being processed correctly #26
Comments
This comment has been minimized.
This comment has been minimized.
try 7.0.0, it contains syntax-tree/hast-util-raw@e66705a. |
Upgraded.
Paths are correct and no error in console. Interestingly, img tags (and all other HTML) render as expected. This only has to do with video. Video encoding has been checked and it loads fine directly in browser. |
Here you can see it working as expected: https://stackblitz.com/edit/github-aeyswk?file=src%2Fmain.ts This is probably an issue with your config, for which there is not enough information to help. |
Indeed, it's been my config. Sanitize was the culprit. I have video showing now with the help of the docs and your example. Thanks and closing. |
Initial checklist
Affected packages and versions
"rehype-raw": "^6.1.1"
Link to runnable example
No response
Steps to reproduce
I am using the following code:
on a .md file in NextJS (Node v20, NPM 9).
Expected behavior
A video should be rendered on the resulting HTML page.
Actual behavior
A video is not rendered and upon closer inspection, an img tag is being spat out instead.
Runtime
Other (please specify in steps to reproduce)
Package manager
Other (please specify in steps to reproduce)
OS
Linux
Build and bundle tools
Next.js
The text was updated successfully, but these errors were encountered: