https://github.com/markedjs/marked-mangle
  
  
     
    https://github.com/markedjs/marked-mangle
  
extension marked
        Last synced: 6 months ago 
        JSON representation
    
- Host: GitHub
- URL: https://github.com/markedjs/marked-mangle
- Owner: markedjs
- License: mit
- Created: 2023-04-01T02:32:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-28T19:45:45.000Z (6 months ago)
- Last Synced: 2025-04-28T20:42:08.522Z (6 months ago)
- Topics: extension, marked
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/marked-mangle
- Size: 3.14 MB
- Stars: 7
- Watchers: 4
- Forks: 2
- Open Issues: 0
- 
            Metadata Files:
            - Readme: README.md
- License: LICENSE
 
Awesome Lists containing this project
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
// 
// 
marked.use(mangle());
marked.parse("email@example.com");
// 
```