1.0.4 • Published 9 years ago

metalsmith-highlight v1.0.4

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

metalsmith-highlight

Build Status

metalsmith-code-highlightではハイライトにはhighlight.jsが使用されていますが、metalsmith-highlightではPrismを使用しています。

Install

NPM

Usage

var Metalsmith = require('metalsmith');
var highlight = require('metalsmith-highlight');

var metalsmith = new Metalsmith(__dirname);
metalsmith
  .use(highlight())
  .build()

対応言語はPrismの一覧にあるすべての言語とAsciiDocです。

  • adoc
  • coffee
  • cs
  • hs
  • js
  • md
  • ps1
  • py
  • ts
  • yml
  • html
  • xml

これらにはAliasが設定されているので、<code class="lang-js">のように書いてもハイライトされます。

License

ISC

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.1

9 years ago