diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-08-27 14:28:45 -0700 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-08-27 14:28:45 -0700 |
commit | a4e4fde3e68a5c27e0424bdbe0dbd87d33a9e020 (patch) | |
tree | e2613e4057b8c30559fb58b60476407d8945a338 /app/helpers/gitlab_markdown_helper.rb | |
parent | 4340dd3eeb6fdda83b729c16cba29239b8ed9f43 (diff) | |
download | gitlab-ce-a4e4fde3e68a5c27e0424bdbe0dbd87d33a9e020.tar.gz |
Restore the forwarded HTML options in link_to_gfm
Diffstat (limited to 'app/helpers/gitlab_markdown_helper.rb')
-rw-r--r-- | app/helpers/gitlab_markdown_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/gitlab_markdown_helper.rb b/app/helpers/gitlab_markdown_helper.rb index b7fec9fc1d9..924e6cb1979 100644 --- a/app/helpers/gitlab_markdown_helper.rb +++ b/app/helpers/gitlab_markdown_helper.rb @@ -38,6 +38,11 @@ module GitlabMarkdownHelper end end + # Add any custom CSS classes to the GFM-generated reference links + if html_options[:class] + fragment.css('a.gfm').add_class(html_options[:class]) + end + fragment.to_html.html_safe end |