/gulp-markdown-it

A plugin for gulp to render markdown files with markdown-it

Primary LanguageCoffeeScriptOtherNOASSERTION

gulp-markdown-it NPM version

Build Status Coverage Status Dependency Status devDependency Status

Markdown-it plugin for gulp 3.

Usage

First, install gulp-markdown-it as a development dependency:

npm install --save-dev gulp-markdown-it

Then, add it to your gulpfile.js:

var gulp = require('gulp');
var markdown-it = require('gulp-markdown-it');

gulp.task('default', function () {
    gulp.src('./src/*.ext')
        .pipe(markdown-it({msg: 'More Coffee!'}))
        .pipe(gulp.dest("./dist"));
});

Options markdown-it(opt)

See the markdown-it Api docs for more details.

opt.preset

Type: String can be "commonmark", "zero" or "default" Default: default

opt.options

Type: Object Default: {}

opt.plugins

Type: Object Default: []

License

MIT License ©