posthtmlify
posthtml transform for documentify.
Install
npm install posthtmlify
Usage
package.json
Node API
var documentify = var posthtmlify = var d =
documentify
cli:
documentify input.html -t posthtmlify > output.html
With options:
documentify input.html -t [ posthtmlify --use posthtml-custom-elements ] > output.html
Passing options to posthtml plugins:
documentify input.html -t [ posthtmlify --use [ posthtml-include --root "${PWD}" ] ] > output.html
Options
use: []
List of posthtml plugins to use. Items can be plugin names or factory functions, or arrays containing a plugin name or factory function and an options object.
d
parser: 'posthtml-parser'
HTML parser module to use. Can be a string module name or a parse function.
d
render: 'posthtml-render'
Render module to use. Can be a string module name or a parse function.
d