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`, `isomorphic-dompurify` and outdated `@babel` packages.
  • Loading branch information
eatyourgreens committed Jan 15, 2024
1 parent f2c203b commit 2fc4288
Show file tree
Hide file tree
Showing 6 changed files with 518 additions and 130 deletions.
Loading

0 comments on commit 2fc4288

Please sign in to comment.