We are currently working on Prism v2 and will only accept security-relevant PRs for the time being.
Once work on Prism v2 is sufficiently advanced, we will accept regular PRs again. This will be announced on our Discussions page.
Prism v1 contributing notes
Prism depends on community contributions to expand and cover a wider array of use cases. If you like it, consider giving back by sending a pull request. Here are a few tips:
-
Read the documentation. Prism was designed to be extensible.
-
Do not edit
prism.js. It is generated automatically for the website. Edit only the unminified files in thecomponents/folder. -
Use
npm cito install dependencies. Do not usenpm install, as it may produce non-deterministic builds. -
The build system uses Gulp to minify files and build
prism.js. After installing dependencies, run:npm run build