summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhttp://jneen.net/ <jneen@jneen.net>2016-07-14 09:51:10 -0700
committerhttp://jneen.net/ <jneen@jneen.net>2016-07-14 10:08:15 -0700
commit3bb65815b0cb7731b3262ff216506582951a6f6f (patch)
tree54d261dcd6ee83ee25ae4df47cb604c7b81f81b5
parent55dc7d09b35c43679d0c298885c10aa59818bf66 (diff)
downloadgitlab-ce-3bb65815b0cb7731b3262ff216506582951a6f6f.tar.gz
kill the :cssclass option
-rw-r--r--lib/banzai/filter/syntax_highlight_filter.rb3
-rw-r--r--lib/gitlab/highlight.rb1
-rw-r--r--lib/rouge/formatters/html_gitlab.rb2
3 files changed, 1 insertions, 5 deletions
diff --git a/lib/banzai/filter/syntax_highlight_filter.rb b/lib/banzai/filter/syntax_highlight_filter.rb
index c06de2e5b37..7f838ef4c08 100644
--- a/lib/banzai/filter/syntax_highlight_filter.rb
+++ b/lib/banzai/filter/syntax_highlight_filter.rb
@@ -44,8 +44,7 @@ module Banzai
# Override Rouge::Plugins::Redcarpet#rouge_formatter
def rouge_formatter(lexer)
- Rouge::Formatters::HTMLGitlab.new(
- cssclass: "code highlight js-syntax-highlight #{lexer.tag}")
+ Rouge::Formatters::HTMLGitlab.new
end
end
end
diff --git a/lib/gitlab/highlight.rb b/lib/gitlab/highlight.rb
index ad928fec970..aaef569d870 100644
--- a/lib/gitlab/highlight.rb
+++ b/lib/gitlab/highlight.rb
@@ -48,7 +48,6 @@ module Gitlab
def rouge_formatter(options = {})
Rouge::Formatters::HTMLGitlab.new(
- cssclass: 'code highlight',
lineanchors: true,
lineanchorsid: 'LC'
)
diff --git a/lib/rouge/formatters/html_gitlab.rb b/lib/rouge/formatters/html_gitlab.rb
index 791a9523884..b9e3272e0b5 100644
--- a/lib/rouge/formatters/html_gitlab.rb
+++ b/lib/rouge/formatters/html_gitlab.rb
@@ -17,11 +17,9 @@ module Rouge
# be changed with lineanchorsid to e.g. foo-linenumber
# (default: 'L').
def initialize(
- cssclass: 'highlight',
lineanchors: false,
lineanchorsid: 'L'
)
- @cssclass = cssclass
@lineanchors = lineanchors
@lineanchorsid = lineanchorsid
end