Class: Gollum::Filter::Markdown

Inherits:
Gollum::Filter
  • Object
show all
Defined in:
lib/markdown.rb

Instance Method Summary collapse

Instance Method Details

#extract(data) ⇒ Object

basic redcarpet render



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/markdown.rb', line 6

def extract(data)
  Redcarpet::Markdown.new(Redcarpet::Render::SmartyHTML.new(
      no_styles: true,
      with_toc_data: true,
      hard_wrap: true
    ), {
    no_intra_emphasis: true,
    tables: true,
    autolink: true,
    footnotes: true
  }).render(data)
end

#process(data) ⇒ Object

passthrough



20
21
22
# File 'lib/markdown.rb', line 20

def process(data)
  data
end