Fix parsing of ref-like Urls in links and images in GFM

Fixes #2166
This commit is contained in:
Riyad Preukschas 2013-01-16 22:37:39 +01:00
parent 16b5417842
commit 2bc78739a7
3 changed files with 36 additions and 7 deletions

View file

@ -27,6 +27,10 @@ class Redcarpet::Render::GitlabHTML < Redcarpet::Render::HTML
HTML
end
def link(link, title, content)
h.link_to_gfm(content, link, title: title)
end
def postprocess(full_document)
h.gfm(full_document)
end