@stnd/modules/prism
This module loads Prism.js and Prism.css from CDN and ensures syntax highlighting is applied to all code blocks on initial load and after every Astro navigation (“astro:after-swap”).
Usage
- Register this module in your app’s module manifest.
- All code blocks with appropriate language classes will be highlighted automatically.
CDN Versions
- Prism.js v1.29.0
- Prism.css v1.29.0