gulp-markdown-it
v0.1.1
Published
A plugin for gulp to render markdown with markdown-it
Downloads
35
Maintainers
Readme
gulp-markdown-it
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: []