A Metalsmith plugin to hightlight code blocks in markdown using highlight.js.
npm install metalsmith-metallicA Metalsmith plugin to highlight code in Markdown files.
$ npm install metalsmith-metallic
Include a highlight.js theme somewhere in your templates.
Ex:
``html`
Install via npm and then add the metalsmith-metallic key to your metalsmith.json plugin, like so:
`json`
{
"plugins": {
"metalsmith-metallic": true
}
}
`js
var metallic = require('metalsmith-metallic');
metalsmith.use(metallic());
``
MIT