Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 775 Bytes

readme.md

File metadata and controls

53 lines (33 loc) · 775 Bytes

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