fix a bug in syntax highlighting now that we have a couple unicode chars
This commit is contained in:
parent
06ab3d4b41
commit
b7c6a7e50f
@ -11,7 +11,7 @@ class SyntaxHighlighterFilter < Nanoc3::Filter
|
||||
|
||||
def pygmentize(code, type)
|
||||
# -O linenos=table
|
||||
IO.popen("pygmentize -l #{type} -f html", "r+") do |io|
|
||||
IO.popen("pygmentize -l #{type} -f html -O encoding=utf-8", "r+") do |io|
|
||||
io.write(code)
|
||||
io.close_write
|
||||
return io.read
|
||||
|
Loading…
Reference in New Issue
Block a user