1.1.0 • Published 9 years ago

mdast-midas v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

mdast-midas Build Status NPM version Dependency Status

Highlight CSS in Markdown files with midas.

Install

With npm do:

npm install mdast-midas --save

Example

mdast-midas is designed to work with mdast-html:

var mdast = require('mdast');
var html  = require('mdast-html');
var midas = require('mdast-midas');

var markdown = '```css\nh1 {\n    color: red;\n}\n```\n';
var result = mdast.use([ html, midas ]).process(markdown);
console.log(result);

//=> Compiled HTML with highlighted CSS!

Contributing

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

License

MIT © Ben Briggs