arve0/metalsmith-pandoc


metalsmith pandoc plugin

License: MIT

Language: JavaScript


npm version Build Status

metalsmith-pandoc

Wrap around pdc, which lets you transform files with pandoc. For example from markdown to Word (docx). Pandoc needs to be system installed.

Install

npm install metalsmith-pandoc

Usage

pandoc = require('metalsmith-pandoc');

Metalsmith(__dirname)
.use(pandoc())
...

As default, plugin will use these settings:

options = {
  from: 'markdown',
  to:   'html5',
  args: [],
  opts: {},
  pattern: '**/*.md', // multimatch
  ext: '.html' // extension for output file
};

To override the defaults, pass an object to the plugin:

.use(pandoc({
  pattern: ['rsts/*.md', 'docs/**/*.md'],
  args: ['--columns=80'],
  from: 'markdown',
  to: 'rst',
  ext: '.rst'
}))

See pdc and pandoc for more detailed description of options.

Release

npm version major|minor|patch
npm publish

Credit

Stole code from metalsmith-markdown.

Project Statistics

Sourcerank 7
Repository Size 48.8 KB
Stars 6
Forks 8
Watchers 3
Open issues 1
Dependencies 87
Contributors 3
Tags 14
Created
Last updated
Last pushed

Top Contributors See all

Arve Seljebu Jun Matsushita Salim Virani

Packages Referencing this Repo

metalsmith-pandoc
Pandoc plugin for metalsmith
Latest release 1.0.0 - Updated - 6 stars

Recent Tags See all

v1.0.0 October 31, 2017
v0.2.4 September 12, 2017
v0.2.3 May 31, 2016
v0.2.2 May 29, 2016
v0.2.1 May 29, 2016
v0.2.0 May 29, 2016
v0.1.3 July 15, 2015
v0.1.1 February 24, 2015
v0.1.0 February 24, 2015
v0.0.7 February 24, 2015
v0.0.6 December 29, 2014
v0.0.4 December 10, 2014
v0.0.3 December 07, 2014
v0.0.1 December 07, 2014

Something wrong with this page? Make a suggestion

Last synced: 2017-11-02 01:09:09 UTC

Login to resync this repository