summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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