A Metalsmith plugin to highlight code in Markdown files.
$ npm install metalsmith-metallic
Include a highlight.js theme somewhere in your templates.
Ex:
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/styles/default.min.css">
Install via npm and then add the metalsmith-metallic
key to your metalsmith.json
plugin, like so:
{
"plugins": {
"metalsmith-metallic": true
}
}
var metallic = require('metalsmith-metallic');
metalsmith.use(metallic());
MIT