Skip to content
Snippets Groups Projects
Commit 3bb65815 authored by http://jneen.net/'s avatar http://jneen.net/
Browse files

kill the :cssclass option

parent 55dc7d09
No related branches found
No related tags found
No related merge requests found
Loading
@@ -44,8 +44,7 @@ module Banzai
Loading
@@ -44,8 +44,7 @@ module Banzai
   
# Override Rouge::Plugins::Redcarpet#rouge_formatter # Override Rouge::Plugins::Redcarpet#rouge_formatter
def rouge_formatter(lexer) def rouge_formatter(lexer)
Rouge::Formatters::HTMLGitlab.new( Rouge::Formatters::HTMLGitlab.new
cssclass: "code highlight js-syntax-highlight #{lexer.tag}")
end end
end end
end end
Loading
Loading
Loading
@@ -48,7 +48,6 @@ module Gitlab
Loading
@@ -48,7 +48,6 @@ module Gitlab
   
def rouge_formatter(options = {}) def rouge_formatter(options = {})
Rouge::Formatters::HTMLGitlab.new( Rouge::Formatters::HTMLGitlab.new(
cssclass: 'code highlight',
lineanchors: true, lineanchors: true,
lineanchorsid: 'LC' lineanchorsid: 'LC'
) )
Loading
Loading
Loading
@@ -17,11 +17,9 @@ module Rouge
Loading
@@ -17,11 +17,9 @@ module Rouge
# be changed with lineanchorsid to e.g. foo-linenumber # be changed with lineanchorsid to e.g. foo-linenumber
# (default: 'L'). # (default: 'L').
def initialize( def initialize(
cssclass: 'highlight',
lineanchors: false, lineanchors: false,
lineanchorsid: 'L' lineanchorsid: 'L'
) )
@cssclass = cssclass
@lineanchors = lineanchors @lineanchors = lineanchors
@lineanchorsid = lineanchorsid @lineanchorsid = lineanchorsid
end end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment