class Gollum::Filter::Markdown

Public Instance Methods

extract(data) click to toggle source

basic redcarpet render

# 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) click to toggle source

passthrough

# File lib/markdown.rb, line 20
def process(data)
  data
end