syntax highlight should with utf-8
This commit is contained in:
@@ -394,7 +394,7 @@ module Gollum
|
|||||||
end
|
end
|
||||||
|
|
||||||
highlighted = begin
|
highlighted = begin
|
||||||
blocks.map { |lang, code| Pygments.highlight(code, :lexer => lang) }
|
blocks.map { |lang, code| Pygments.highlight(code, :lexer => lang, :options => {:encoding => 'utf-8'}) }
|
||||||
rescue ::RubyPython::PythonError
|
rescue ::RubyPython::PythonError
|
||||||
[]
|
[]
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user