# turndown-plugin-gfm

> Turndown plugin to add GitHub Flavored Markdown extensions.

Latest version **1.0.2** (published 2018-05-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install turndown-plugin-gfm
pnpm add turndown-plugin-gfm
yarn add turndown-plugin-gfm
bun add turndown-plugin-gfm
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-05-11 |
| First published | 2017-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 23.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 134 |
| Author | Dom Christie |
| Maintainers | domchristie |
| Keywords | turndown, turndown-plugin, html-to-markdown, html, markdown, github-flavored-markdown, gfm |

## Links

- npm: https://www.npmjs.com/package/turndown-plugin-gfm
- Repository: https://github.com/domchristie/turndown-plugin-gfm
- Homepage: https://github.com/domchristie/turndown-plugin-gfm#readme
- Issues: https://github.com/domchristie/turndown-plugin-gfm/issues
- npm.io page: https://npm.io/package/turndown-plugin-gfm

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2018-05-11
- 1.0.1 — 2017-12-19
- 1.0.0 — 2017-12-17
- 0.0.3 — 2017-12-14
- 0.0.2 — 2017-11-24
- 0.0.1 — 2017-11-10

## README

# turndown-plugin-gfm

A [Turndown](https://github.com/domchristie/turndown) plugin which adds GitHub Flavored Markdown extensions.

## Installation

npm:

```
npm install turndown-plugin-gfm
```

Browser:

```html
<script src="https://unpkg.com/turndown/dist/turndown.js"></script>
<script src="https://unpkg.com/turndown-plugin-gfm/dist/turndown-plugin-gfm.js"></script>
```

## Usage

```js
// For Node.js
var TurndownService = require('turndown')
var turndownPluginGfm = require('turndown-plugin-gfm')

var gfm = turndownPluginGfm.gfm
var turndownService = new TurndownService()
turndownService.use(gfm)
var markdown = turndownService.turndown('<strike>Hello world!</strike>')
```

turndown-plugin-gfm is a suite of plugins which can be applied individually. The available plugins are as follows:

- `strikethrough` (for converting `<strike>`, `<s>`, and `<del>` elements)
- `tables`
- `taskListItems`
- `gfm` (which applies all of the above)

So for example, if you only wish to convert tables:

```js
var tables = require('turndown-plugin-gfm').tables
var turndownService = new TurndownService()
turndownService.use(tables)
```

## License

turndown-plugin-gfm is copyright © 2017+ Dom Christie and released under the MIT license.

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