tanoku/redcarpet — Issue #73: Mailto links aren’t properly considered safe
Author: codyrobbins
Created: 2011-11-23 22:47:35+00:00
State: open

# Example

Given

```ruby
renderer = Redcarpet::Render::HTML.new(safe_links_only: true)
redcarpet = Redcarpet::Markdown.new(renderer)
````

then

```ruby
redcarpet.render('[Email](mailto:test@example.com)')
````

won’t render a link, but

```ruby
redcarpet.render('[Email](mailto://test@example.com)')
````

erroneously will.

# Solution

Change [this code](https://github.com/tanoku/redcarpet/blob/master/ext/redcarpet/autolink.c#L29) to contain `mailto:` and not `mailto://`.