Strip content of the {% highlight %} block

A fix for #1801
This commit is contained in:
Parker Moore 2014-02-02 21:42:01 -05:00
parent 781e257298
commit 2a3f0c0ec3
1 changed files with 4 additions and 3 deletions

View File

@ -41,13 +41,14 @@ eos
end
def render(context)
code = super.to_s.strip
case context.registers[:site].highlighter
when 'pygments'
render_pygments(context, super)
render_pygments(context, code)
when 'rouge'
render_rouge(context, super)
render_rouge(context, code)
else
render_codehighlighter(context, super)
render_codehighlighter(context, code)
end
end