module Bunto::Converters::Markdown::RedcarpetParser::WithoutHighlighting

Public Instance Methods

block_code(code, lang) click to toggle source
# File lib/bunto/converters/markdown/redcarpet_parser.rb, line 41
def block_code(code, lang)
  lang = lang && lang.split.first || "text"
  add_code_tags(code_wrap(code), lang)
end
code_wrap(code) click to toggle source
# File lib/bunto/converters/markdown/redcarpet_parser.rb, line 37
def code_wrap(code)
  "<figure class=\"highlight\"><pre>#{CGI.escapeHTML(code)}</pre></figure>"
end