See release notes.
const gulp = require('gulp');
const format = require('{%= name %}');
gulp.task('format', () => {
return gulp.src('README.md')
.pipe(format())
.pipe(gulp.dest('.'));
});
gulp-format-md
ensures that files have a trailing newline by default. Pass false
to disable this and strip trailing whitespace.
type: boolean
default: true
example
gulp.task('format-md', () => {
return gulp.src('readme.md')
.pipe(format({ newline: false }))
.pipe(gulp.dest('.'));
});
Removed
CLI was removed in v2.0. We will be releasing a standalone CLI soon, please watch the project or follow @jonschlinkert for updates.