Module: GrapeSwagger::Markdown::RedcarpetAdapter::RenderWithoutSyntaxHighlighter

Defined in:
lib/grape-swagger/markdown/redcarpet_adapter.rb

Instance Method Summary collapse

Instance Method Details

#block_code(code, language) ⇒ Object


7
8
9
10
# File 'lib/grape-swagger/markdown/redcarpet_adapter.rb', line 7

def block_code(code, language)
  language ||= 'text'
  "<div class=\"code_highlight\"><pre><code class=\"highlight #{language}\">#{CGI.escapeHTML(code)}</code></pre></div>"
end