mapbox / rehype-prism

rehype plugin to highlight code blocks in HTML with Prism (via refractor)
MIT License
178 stars 24 forks source link

Update refractor version to v4.1.0 #24

Closed kaisugi closed 3 years ago

kaisugi commented 3 years ago

Prismjs < 1.24 has a security problem, and refractor v4.1.0 updates its dependent Prismjs to 1.24 (https://github.com/wooorm/refractor/releases/tag/4.1.0 )

katydecorah commented 3 years ago

Thanks for the PR. Unfortunately, we aren't ready to upgrade to refractor@4 as that version switched to esm and will need to dedicate time to focus on that switch. In the meantime, refactor@3.4.0 has the prism patch and I will make a release with that today. https://github.com/mapbox/rehype-prism/pull/25