diff --git a/bin/sharkfrown b/bin/sharkfrown index efe7d74..f53e436 100755 --- a/bin/sharkfrown +++ b/bin/sharkfrown @@ -9,7 +9,10 @@ class Sharkfrown class PygmentizeHTML < Redcarpet::Render::HTML def block_code(code, language) require 'pygmentize' - Pygmentize.process(code, language) + result = Pygmentize.process(code, language) + result = "
#{code}
" if result.empty? + + result end end