Sha256: 10705969fcc23f3ee4bce941fa3b382e8c204f41105b921511a453bb870ba30a

Contents?: true

Size: 224 Bytes

Versions: 6

Compression:

Stored size: 224 Bytes

Contents

#
# MARKDOWN
#
Comatose::TextFilters.define :markdown, "Markdown" do
  require 'bluecloth'
  
  def render_text(text)
    BlueCloth.new(text).to_html
  end
  
  def create_link(title, url)
    "[#{title}](#{url})"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
comatose-rubyisbeautiful-3.0.5 lib/text_filters/markdown.rb
comatose-rubyisbeautiful-3.0.4 lib/text_filters/markdown.rb
comatose-rubyisbeautiful-3.0.3 lib/text_filters/markdown.rb
comatose-rubyisbeautiful-3.0.2 lib/text_filters/markdown.rb
comatose-rubyisbeautiful-3.0.1 lib/text_filters/markdown.rb
comatose-rubyisbeautiful-3.0.0 lib/text_filters/markdown.rb