Warning
This package is no longer maintained. It will not receive updates, fixes or support. PostHTML itself can be used directly: https://github.com/posthtml/posthtml
npm i -D metalsmith-posthtmlimport metalsmith from 'metalsmith'
import posthtml from 'metalsmith-posthtml'
const plugins = [/* Plugins */]
const options = {/* Options */}
metalsmith(__dirname)
.source('src')
.destination('dest')
.use(posthtml(plugins, options))
.build((err) => {
if (err) throw err
})|
Michael Ciniawsky |
See PostHTML Guidelines and contribution guide.