unified

Project: remarkjs/gulp-remark

Package: gulp-remark@8.0.0

  1. Dependencies: 2·Dependents: 0
  2. Gulp plugin for remark
  1. remark 182
  2. unified 146
  3. markdown 104
  4. mdast 72
  5. md 4
  6. gulp 2

gulp-remark

Build Coverage Downloads Sponsors Backers Chat

Gulp plugin for remark — Markdown processor powered by plugins.

Install

npm:

npm install --save-dev gulp-remark

Use

var gulp = require('gulp')
var remark = require('gulp-remark')
var html = require('remark-html')
var lint = require('remark-preset-lint-markdown-style-guide')

gulp.task('default', function() {
  gulp
    .src('*.md')
    .pipe(
      remark()
        .use(html)
        .use(lint)
    )
    .pipe(gulp.dest('dist'))
})

API

remark([options])

Create a Gulp plugin. The files are processed with remark. This is similar to the remark-cli, so you can specify configuration with .remarkrc and ignore files (.remarkignore).

options

All options are passed to unified-engine-gulp. The parse and stringify settings can be passed in options.settings, or in configuration files (.remarkrc, package.json).

remark().use(plugin[, options])

Change the way remark works by using a plugin.

Security

Use of remark and its plugins could open you up to cross-site scripting (XSS) or other attacks. Carefully assess each plugin and the risks involved in using them.

Contribute

See contributing.md in remarkjs/.github for ways to get started. See support.md for ways to get help.

This project has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.

License

MIT © Denys Dovhan