Module: Locomotive::Steam::Markdown
- Defined in:
- lib/locomotive/steam/initializers/markdown.rb
Class Method Summary collapse
Class Method Details
.parser ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/locomotive/steam/initializers/markdown.rb', line 11 def self.parser @@markdown ||= Redcarpet::Markdown.new Redcarpet::Steam::HTML, { autolink: true, fenced_code: true, generate_toc: true, gh_blockcode: true, hard_wrap: true, no_intraemphasis: true, strikethrough: true, tables: true, xhtml: true } end |
.render(text) ⇒ Object
7 8 9 |
# File 'lib/locomotive/steam/initializers/markdown.rb', line 7 def self.render(text) self.parser.render(text) end |