html.rb 284 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 10 11 12 13 module Banzai module Renderer class HTML < Redcarpet::Render::HTML def block_code(code, lang) lang_attr = lang ? %Q{ lang="#{lang}"} : '' "\n<pre>" \ "<code#{lang_attr}>#{html_escape(code)}</code>" \ "</pre>" end end end end