JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 29116
  • Score
    100M100P100Q133159F
  • License MIT

Gulp plugin for beautifying markdown using pretty-remarkable.

Package Exports

  • gulp-format-md

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-format-md) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gulp-format-md NPM version NPM downloads Build Status

Gulp plugin for beautifying markdown using pretty-remarkable.

Install

Install with npm:

$ npm install gulp-format-md --save

Usage

var gulp = require('gulp');
var format = require('gulp-format-md');

gulp.task('format-md', function () {
  return gulp.src('readme.md')
    .pipe(format())
    .pipe(gulp.dest('.'));
});

Options

force

Force gulp-format-md to format files with non-markdown extensions.

type: boolean

default: undefined

example

gulp.task('format-md', function () {
  return gulp.src('foo.txt')
    .pipe(format({force: true}))
    .pipe(gulp.dest('.'));
});

newline

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', function () {
  return gulp.src('readme.md')
    .pipe(format({newline: false}))
    .pipe(gulp.dest('.'));
});

You might also be interested in these projects:

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Building docs

Generate readme and API documentation with verb:

$ npm install verb && npm run docs

Or, if verb is installed globally:

$ verb

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Jon Schlinkert

License

Copyright © 2016, Jon Schlinkert. Released under the MIT license.


This file was generated by verb, v0.9.0, on April 17, 2016.