Fully embrace Ruby 1.9 hash syntax
Didn't bother with files in db/, config/, or features/
This commit is contained in:
parent
1413c23c50
commit
7754189187
257 changed files with 1449 additions and 1449 deletions
|
@ -11,9 +11,9 @@ class Redcarpet::Render::GitlabHTML < Redcarpet::Render::HTML
|
|||
|
||||
def block_code(code, language)
|
||||
if Pygments::Lexer.find(language)
|
||||
Pygments.highlight(code, :lexer => language, :options => {:encoding => 'utf-8'})
|
||||
Pygments.highlight(code, lexer: language, options: {encoding: 'utf-8'})
|
||||
else
|
||||
Pygments.highlight(code, :options => {:encoding => 'utf-8'})
|
||||
Pygments.highlight(code, options: {encoding: 'utf-8'})
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue