This package has been deprecated

Author message:

Renamed to metalsmith-remark without API changes.

metalsmith-mdast

1.0.0 • Public • Published

metalsmith-mdast Build Status NPM version Dependency Status

Convert markdown to html with mdast.

If you have any issues with the output of this plugin, please use the mdast tracker.

Install

With npm do:

npm install metalsmith-mdast --save

Example

The mdast-html plugin is bundled for you automatically:

var mdast      = require('metalsmith-mdast'),
    Metalsmith = require('metalsmith');
 
Metalsmith('fixtures')
    .use(mdast())
    .build(function (err) {
        if (err) {
            throw err;
        }
    });

Add further plugins by passing an array:

var rmBadges   = require('mdast-strip-badges'),
    rmParas    = require('mdast-squeeze-paragraphs');
 
Metalsmith('fixtures')
    .use(mdast([ rmBadges, rmParas ]))
    .build(function (err) {
        if (err) {
            throw err;
        }
    });

Contributing

Pull requests are welcome. If you add functionality, then please add unit tests to cover it.

License

MIT © Ben Briggs

Package Sidebar

Install

npm i metalsmith-mdast

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • beneb