# marked-mangle

> marked mangle extension

Latest version **1.1.13** (published 2026-04-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install marked-mangle
pnpm add marked-mangle
yarn add marked-mangle
bun add marked-mangle
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.1.13 |
| Published | 2026-04-07 |
| First published | 2023-04-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 6 |
| Author | Tony Brix |
| Maintainers | tonybrix |
| Keywords | marked, extension, mangle |

## Links

- npm: https://www.npmjs.com/package/marked-mangle
- Repository: https://github.com/markedjs/marked-mangle
- Homepage: https://github.com/markedjs/marked-mangle#readme
- Issues: https://github.com/markedjs/marked-mangle/issues
- npm.io page: https://npm.io/package/marked-mangle

## 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.1.13 (latest) — 2026-04-07
- 1.1.12 — 2025-11-07
- 1.1.11 — 2025-06-27
- 1.1.10 — 2024-11-09
- 1.1.9 — 2024-08-07
- 1.1.8 — 2024-06-12
- 1.1.7 — 2024-02-06
- 1.1.6 — 2023-11-30
- 1.1.5 — 2023-11-11
- 1.1.4 — 2023-09-11
- 1.1.3 — 2023-09-04
- 1.1.2 — 2023-08-07
- 1.1.1 — 2023-08-05
- 1.1.0 — 2023-06-28
- 1.0.1 — 2023-05-03
- … 1 more at https://npm.io/package/marked-mangle/versions

## README

# marked-mangle

Mangle mailto links with HTML character references.

Mangling mailto links in this way is useful when you want to prevent email harvesting bots from collecting email addresses from your website, in the case that the Markdown is server-rendered. It's also useful for preventing the browser from automatically opening the user's default email client when clicking on a mailto link.

# Usage

```js
import { marked } from "marked";
import { mangle } from "marked-mangle";

// or UMD script
// <script src="https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.js"></script>
// <script src="https://cdn.jsdelivr.net/npm/marked-mangle/lib/index.umd.js"></script>

marked.use(mangle());

marked.parse("email@example.com");
// <p><a href="mailto:&#101;&#109;&#97;&#x69;&#x6c;&#x40;&#101;&#120;&#x61;&#x6d;&#x70;&#x6c;&#x65;&#46;&#x63;&#x6f;&#109;">&#101;&#109;&#97;&#x69;&#x6c;&#x40;&#101;&#120;&#x61;&#x6d;&#x70;&#x6c;&#x65;&#46;&#x63;&#x6f;&#109;</a></p>
```

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