Skip to content

Commit

Permalink
[Security] Remove markdown-it-html5-embed
Browse files Browse the repository at this point in the history
- Add tests for images with audio and video URLs.
- Remove `markdown-it-html5-embed`, which is quite old, depends on an outdated version of `markdown-it`, and loads in all of `mime-db` to check for audio or video URLs.
- Replace it with `lib/html5-embed`, a modified version of the original plugin, updated to use `mime/lite` to lookup MIME types for audio and video, in the browser.
- Bump `jsdom` and `isomorphic-dompurify`.
  • Loading branch information
eatyourgreens committed Jan 8, 2024
1 parent f2c203b commit f77539b
Show file tree
Hide file tree
Showing 6 changed files with 502 additions and 112 deletions.
Loading

0 comments on commit f77539b

Please sign in to comment.