metalsmith-typeset

0.0.2 • Public • Published

metalsmith-typeset

A Metalsmith plugin to enhance typography in HTML — abbreviations, quotes and dashes, non-breaking spaces after prepositions. Uses Typeset.js.

Installation

$ npm install metalsmith-typeset

CLI Usage

Install via npm and then add the metalsmith-typeset key to your metalsmith.json plugins:

{
  "plugins": {
    "metalsmith-typeset": {
    }
  }
}

Javascript Usage

Pass options to the typeset plugin and pass it to Metalsmith with the use method:

var typeset = require('metalsmith-typeset');
 
metalsmith.use(typeset({
}));

Call it after the metalsmith-markdown plugin, so that HTML files are available.

Options

Options are passed to Typeset.js

Alternatives

This plugin is a slight variation of Anton Zhiyanov's metalsmith-typography. That plugin uses Richtypo under the hood instead of Typeset.js

License

MIT

Package Sidebar

Install

npm i metalsmith-typeset

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • clinth