Prism.js support for JSTransformers.
JavaScript HTML
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.editorconfig
.gitignore
.travis.yml
HISTORY.md
LICENSE.md
README.md
index.js
package.json

README.md

jstransformer-prismjs

Prism.js support for JSTransformers.

Build Status Coverage Status Dependency Status Greenkeeper badge NPM version

Installation

npm install jstransformer-prismjs

API

var prism = require('jstransformer')(require('jstransformer-prismjs'))

prism.render('p { color: red }', { language: 'css' }).body
//=> '<pre><code class="language-css">p { color: red }</code></pre>'

License

MIT