Nice Paintings, Mondrian
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

metalsmith-metallic

2.0.2 • Public • Published

metalsmith-metallic travis status npm version

A Metalsmith plugin to highlight code in Markdown files.

Installation

$ npm install metalsmith-metallic

Setup

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">

CLI Usage

Install via npm and then add the metalsmith-metallic key to your metalsmith.json plugin, like so:

{
  "plugins": {
    "metalsmith-metallic": true
  } 
}

Javascript Usage

var metallic = require('metalsmith-metallic');
 
metalsmith.use(metallic());

License

MIT

install

npm i metalsmith-metallic

Downloadsweekly downloads

1,103

version

2.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability