remark-strip-html

Remove html formatting from Markdown

MIT License

Downloads
2.6K
Stars
11

remark-strip-html

Remove HTML formatting from Markdown with remark.

Installation

npm:

npm install remark-strip-html

Usage

var remark = require('remark');
var strip = require('remark-strip-html');

remark()
  .use(strip)
  .process('<pre>Hello</pre>', function (err, file) {
    if (err) throw err;
    console.log(String(file));
  });

Yields:

Hello

API

remark().use(strip)

Modifies remark to expose Markdown with HTML formatting removed.

  • Removes HTML tags

License

MIT © Takuya Matsuyama

Package Rankings
Top 5.21% on Npmjs.org