Class: MongoFe::MarkdownRenderer

Inherits:
Redcarpet::Render::HTML
  • Object
show all
Includes:
Redcarpet::Render::SmartyPants
Defined in:
lib/mongo_fe/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#block_code(code, language) ⇒ Object



72
73
74
# File 'lib/mongo_fe/application_controller.rb', line 72

def block_code(code, language)
  CodeRay.highlight(code, language)
end

#escape_html(html) ⇒ Object



76
77
78
# File 'lib/mongo_fe/application_controller.rb', line 76

def escape_html(html)
  Rack::Utils.escape_html(html)
end