Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

metalsmith-pandoc

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metalsmith-pandoc

Pandoc plugin for metalsmith

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
-80%
Maintainers
2
Weekly downloads
 
Created
Source

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.

Keywords

pandoc

FAQs

Package last updated on 31 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts