Class: Slyde::HTMLRenderer

Inherits:
Redcarpet::Render::HTML
  • Object
show all
Includes:
Rack::Utils
Defined in:
lib/slyde/html_renderer.rb

Instance Method Summary collapse

Instance Method Details

#block_code(code, language) ⇒ Object



7
8
9
# File 'lib/slyde/html_renderer.rb', line 7

def block_code(code, language)
  "<pre><code data-language=\"#{language}\">#{escape_html code}</code></pre>"
end