gulp-h2md
v1.0.12
Published
Gulp plugin for html to md
Downloads
9
Maintainers
Readme
gulp-h2md
Gulp plugin for html to md
Install
npm install gulp-h2md --save-dev
Basic Usage
'use strict';
var gulp = require('gulp');
var gH2md = require('gulp-h2md');
gulp.task('h2md', function () {
return gulp.src('./html/**/*.html')
.pipe(gH2md())
.pipe(gulp.dest('./md'));
});
'use strict';
var gulp = require('gulp');
var gH2md = require('gulp-h2md');
gulp.task('h2md', function () {
return gulp.src('./html/**/*.html')
.pipe(gH2md().on('error', gH2md.logError))
.pipe(gulp.dest('./md'));
});
You can also compile synchronously, doing something like this:
'use strict';
var gulp = require('gulp');
var gH2md = require('gulp-h2md');
gulp.task('h2md', function () {
return gulp.src('./html/**/*.html')
.pipe(gH2md.sync().on('error', gH2md.logError))
.pipe(gulp.dest('./md'));
});