提交 3bb65815 编写于 作者: H http://jneen.net/

kill the :cssclass option

上级 55dc7d09
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册