remark-strip-html

Remove html formatting from Markdown

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
remark-strip-html
871.0.22 years ago5 years agoMinified + gzip package size for remark-strip-html in KB

Readme

remark-strip-html
Remove HTML formatting from Markdown with remarkremark.

Installation

npm install remark-strip-html
## Usage

```javascript
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

MITlicense © Takuya Matsuyamaauthor