Sha256: f38b4cb0d682a60daeec95a0392fb887a93ba13f684df61cc9026845aef453ba

Contents?: true

Size: 214 Bytes

Versions: 20

Compression:

Stored size: 214 Bytes

Contents

#
# MARKDOWN
#
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

20 entries across 20 versions & 7 rubygems

Version Path
aslakjo-aslakjo-comatose-2.0.5.1 lib/text_filters/markdown.rb
aslakjo-comatose-2.0.5.2 lib/text_filters/markdown.rb
aslakjo-comatose-2.0.5.3 lib/text_filters/markdown.rb
darthapo-comatose-2.0.3 lib/text_filters/markdown.rb
darthapo-comatose-2.0.4 lib/text_filters/markdown.rb
darthapo-comatose-2.0.5 lib/text_filters/markdown.rb
darthapo-comatose-2.0 lib/text_filters/markdown.rb
jcnetdev-comatose-2.0.1 lib/text_filters/markdown.rb
staugaard-comatose-2.0.2 lib/text_filters/markdown.rb
staugaard-comatose-2.0.3 lib/text_filters/markdown.rb
comatose-2.0.5 lib/text_filters/markdown.rb
comatose-2.0.1 lib/text_filters/markdown.rb
aslakjo-comatose-2.0.5.12 lib/text_filters/markdown.rb
aslakjo-comatose-2.0.5.11 lib/text_filters/markdown.rb
aslakjo-comatose-2.0.5.10 lib/text_filters/markdown.rb
aslakjo-comatose-2.0.5.9 lib/text_filters/markdown.rb
aslakjo-comatose-2.0.5.8 lib/text_filters/markdown.rb
aslakjo-comatose-2.0.5.7 lib/text_filters/markdown.rb
merb_comatose-0.0.3 lib/text_filters/markdown.rb
merb_comatose-0.0.2 lib/text_filters/markdown.rb