diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-08-27 15:36:26 -0700 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-08-27 15:36:26 -0700 |
commit | 8e7111f79de43ea5c8471f3e0bf6ac0c76dd3117 (patch) | |
tree | e20c33ae0338ae46902997267ca79cb86f71f277 /lib | |
parent | a4e4fde3e68a5c27e0424bdbe0dbd87d33a9e020 (diff) | |
download | gitlab-ce-8e7111f79de43ea5c8471f3e0bf6ac0c76dd3117.tar.gz |
Reference filters no longer take a custom class context option
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/markdown.rb | 1 | ||||
-rw-r--r-- | lib/gitlab/markdown/reference_filter.rb | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/gitlab/markdown.rb b/lib/gitlab/markdown.rb index de1da31a390..7efcbaf3252 100644 --- a/lib/gitlab/markdown.rb +++ b/lib/gitlab/markdown.rb @@ -67,7 +67,6 @@ module Gitlab # options - A Hash of options used to customize output (default: {}): # :xhtml - output XHTML instead of HTML # :reference_only_path - Use relative path for reference links - # html_options - extra options for the reference links as given to link_to def self.gfm(text, options = {}) return text if text.nil? diff --git a/lib/gitlab/markdown/reference_filter.rb b/lib/gitlab/markdown/reference_filter.rb index 47ee1d99da3..3b1dbb3004c 100644 --- a/lib/gitlab/markdown/reference_filter.rb +++ b/lib/gitlab/markdown/reference_filter.rb @@ -9,7 +9,6 @@ module Gitlab # # Context options: # :project (required) - Current project, ignored if reference is cross-project. - # :reference_class - Custom CSS class added to reference links. # :only_path - Generate path-only links. # # Results: @@ -70,7 +69,7 @@ module Gitlab end def reference_class(type) - "gfm gfm-#{type} #{context[:reference_class]}".strip + "gfm gfm-#{type}".strip end # Iterate through the document's text nodes, yielding the current node's |