remark-strip-html

1.0.2 • Public • Published

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 Sidebar

Install

npm i remark-strip-html

Weekly Downloads

493

Version

1.0.2

License

MIT

Unpacked Size

4.86 kB

Total Files

4

Last publish

Collaborators

  • craftzdog