Package Exports
- prismjs-ris
- prismjs-ris/prism-ris.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (prismjs-ris) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
PrismJS-RIS
A [RIS] language extension for [PrismJS].
Usage
In HTML
Simply import the prism-ris.min.js (recommended at the end of body):
<script src="https://cdn.jsdelivr.net/npm/prismjs-ris@1.0.2/prism-ris.min.js">
</script>Remember to import the PrismJS stylesheets and scripts before importing this extension. For example:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-solarizedlight.min.css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js">
</script>
<script src="https://cdn.jsdelivr.net/npm/prismjs-ris@1.0.2/prism-ris.min.js">
</script>In NodeJS
Add the package to your project:
$ npm install prismjs-risImport
prismjs-risyour .js file, after Prism:import Prism from 'prismjs'; import 'prismjs-ris';