diff options
author | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2013-01-16 22:37:39 +0100 |
---|---|---|
committer | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2013-01-16 22:39:56 +0100 |
commit | 2bc78739a7aa9d7e5109281fc45dbd41a1a576d4 (patch) | |
tree | 19bf8b9cbd72f293ca3f0da7cc7f1eb1365d11a9 /lib/redcarpet | |
parent | 16b54178422b5e84e0ddd61a7a44306d7b164707 (diff) | |
download | gitlab-ce-2bc78739a7aa9d7e5109281fc45dbd41a1a576d4.tar.gz |
Fix parsing of ref-like Urls in links and images in GFM
Fixes #2166
Diffstat (limited to 'lib/redcarpet')
-rw-r--r-- | lib/redcarpet/render/gitlab_html.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/redcarpet/render/gitlab_html.rb b/lib/redcarpet/render/gitlab_html.rb index 3a430e0bf9e..4f2c86e2d41 100644 --- a/lib/redcarpet/render/gitlab_html.rb +++ b/lib/redcarpet/render/gitlab_html.rb @@ -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 |