# remark-strip-html

> Remove html formatting from Markdown

Latest version **1.0.2** (published 2021-01-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install remark-strip-html
pnpm add remark-strip-html
yarn add remark-strip-html
bun add remark-strip-html
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-01-02 |
| First published | 2017-12-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Takuya Matsuyama |
| Maintainers | craftzdog |
| Keywords | text, markdown, plain, text, remark |

## Links

- npm: https://www.npmjs.com/package/remark-strip-html
- Repository: https://github.com/craftzdog/remark-strip-html
- Homepage: https://github.com/craftzdog/remark-strip-html#readme
- Issues: https://github.com/craftzdog/remark-strip-html/issues
- npm.io page: https://npm.io/package/remark-strip-html

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2021-01-02
- 1.0.1 — 2018-05-19
- 1.0.0 — 2017-12-21

## README

# remark-strip-html

Remove HTML formatting from Markdown with [**remark**][remark].

## Installation

[npm][]:

```bash
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:

```text
Hello
```

## API

### `remark().use(strip)`

Modifies **remark** to expose Markdown with HTML formatting removed.

*   Removes HTML tags

## License

[MIT][license] © [Takuya Matsuyama][author]

<!-- Definitions -->

[npm]: https://docs.npmjs.com/cli/install

[license]: LICENSE

[author]: https://www.craftz.dog/

[remark]: https://github.com/wooorm/remark

---
_Source: https://npm.io/package/remark-strip-html · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
