gitlabhq/lib/redcarpet/render/gitlab_html.rb

9 lines
241 B
Ruby
Raw Normal View History

class Redcarpet::Render::GitlabHTML < Redcarpet::Render::HTML
def block_code(code, language)
if Pygments::Lexer.find(language)
Pygments.highlight(code, :lexer => language)
else
Pygments.highlight(code)
end
end
end