A Metalsmith plugin for converting markdown using the showdown library.
npm install metalsmith-showdown
var metalsmith = require('metalsmith');
var showdown = require('showdown');
metalsmith
.use(showdown({
//options
))
(default ["contents"])
An array of post properties to convert (e.g. convert: ["excerpt", "contents"]
)
(optional, object)
Pass options to showdown.
.use(showdown({
convert : ["excerpt", "contents"],
options: {
strikethrough: true,
tables: true,
tasklists: true,
},
}))