Commit e08ff468 authored by http://jneen.net/'s avatar http://jneen.net/

make #custom_language private

parent c8b52761
......@@ -27,14 +27,6 @@ module Gitlab
end
end
def custom_language
return nil if @repository.nil?
language_name = @repository.gitattribute(@blob_name, 'gitlab-language')
Rouge::Lexer.find(language_name)
end
def highlight(text, continue: true, plain: false)
if plain
@formatter.format(Rouge::Lexers::PlainText.lex(text)).html_safe
......@@ -47,6 +39,14 @@ module Gitlab
private
def custom_language
return nil if @repository.nil?
language_name = @repository.gitattribute(@blob_name, 'gitlab-language')
Rouge::Lexer.find(language_name)
end
def rouge_formatter(options = {})
options = options.reverse_merge(
nowrap: true,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment