Refactor the case statement in highlighter for better readability. [ci skip]

This commit is contained in:
Parker Moore 2014-11-23 14:17:21 -08:00
parent 03d9396b85
commit c2b24e82e5
1 changed files with 9 additions and 8 deletions

View File

@ -46,7 +46,8 @@ eos
is_safe = !!context.registers[:site].safe is_safe = !!context.registers[:site].safe
output = case context.registers[:site].highlighter output =
case context.registers[:site].highlighter
when 'pygments' when 'pygments'
render_pygments(code, is_safe) render_pygments(code, is_safe)
when 'rouge' when 'rouge'