vmg/redcarpet — pull request #372 by jomo (2014-04-29 22:40:06+00:00)
Title: Allow in-page links (#) when `:safe_links_only` is set

`with_toc_data` is useless with `safe_links_only` because the latter denies to link to any of the headlines.

```ruby
renderer = Redcarpet::Render::HTML.new({
safe_links_only: true,
with_toc_data: true
})
md = Redcarpet::Markdown.new(renderer)
md.render("[link](#head)\n# head")
```

result:
```HTML

[link](#head)

head

```

What I expected was this:
```HTML

link

head

```