Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

A Metalsmith plugin for converting markdown using the showdown library.

Notifications You must be signed in to change notification settings

AlansCodeLog/metalsmith-showdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

metalsmith-showdown

A Metalsmith plugin for converting markdown using the showdown library.

Installation

npm install metalsmith-showdown

Usage

var metalsmith = require('metalsmith');
var showdown = require('showdown');

metalsmith
    .use(showdown({
      //options
    ))

Options

convert

(default ["contents"])

An array of post properties to convert (e.g. convert: ["excerpt", "contents"])

options

(optional, object)

Pass options to showdown.

Example

.use(showdown({
  convert : ["excerpt", "contents"],
  options: {
    strikethrough: true,
    tables: true,
    tasklists: true,
  },
}))

About

A Metalsmith plugin for converting markdown using the showdown library.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published