kill the :cssclass option
This commit is contained in:
parent
55dc7d09b3
commit
3bb65815b0
3 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -48,7 +48,6 @@ module Gitlab
|
|||
|
||||
def rouge_formatter(options = {})
|
||||
Rouge::Formatters::HTMLGitlab.new(
|
||||
cssclass: 'code highlight',
|
||||
lineanchors: true,
|
||||
lineanchorsid: 'LC'
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue