Class: Blogg::ApplicationHelper::HTML

Inherits:
Redcarpet::Render::HTML
  • Object
show all
Includes:
Rouge::Plugins::Redcarpet
Defined in:
app/helpers/blogg/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#rouge_formatter(opts = {}) ⇒ Object



9
10
11
12
13
14
15
# File 'app/helpers/blogg/application_helper.rb', line 9

def rouge_formatter(opts = {})
  opts = {
    line_numbers: true,
    wrap: true
  }
  Rouge::Formatters::HTML.new(opts)
end