Sha256: cdb8561f30a8d07cdcf8746b4656885059fed43c05a7ad691e0c3e33e0f59b87

Contents?: true

Size: 271 Bytes

Versions: 1

Compression:

Stored size: 271 Bytes

Contents

class Irwi::Formatters::RedCarpet

  def initialize
    require 'redcarpet'
  end

  def format( text )
    markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, :autolink => true, :space_after_headers => true, :tables => true)
    markdown.render(text)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
irwi-0.5.0 lib/irwi/formatters/red_carpet.rb