Sha256: 21207a92b1797143379e601a44e2552e713a35ceb262d8e90e1e56129cf6aa30

Contents?: true

Size: 301 Bytes

Versions: 20

Compression:

Stored size: 301 Bytes

Contents

#
# MARKDOWN + SMARTYPANTS
#
TextFilters.define :markdown_smartypants, "Markdown + SmartyPants" do
  require 'bluecloth'
  require 'rubypants'
  
  def render_text(text)
    RubyPants.new( BlueCloth.new(text).to_html ).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_smartypants.rb
aslakjo-comatose-2.0.5.2 lib/text_filters/markdown_smartypants.rb
aslakjo-comatose-2.0.5.3 lib/text_filters/markdown_smartypants.rb
darthapo-comatose-2.0.3 lib/text_filters/markdown_smartypants.rb
darthapo-comatose-2.0.4 lib/text_filters/markdown_smartypants.rb
darthapo-comatose-2.0.5 lib/text_filters/markdown_smartypants.rb
darthapo-comatose-2.0 lib/text_filters/markdown_smartypants.rb
jcnetdev-comatose-2.0.1 lib/text_filters/markdown_smartypants.rb
staugaard-comatose-2.0.2 lib/text_filters/markdown_smartypants.rb
staugaard-comatose-2.0.3 lib/text_filters/markdown_smartypants.rb
comatose-2.0.5 lib/text_filters/markdown_smartypants.rb
comatose-2.0.1 lib/text_filters/markdown_smartypants.rb
aslakjo-comatose-2.0.5.12 lib/text_filters/markdown_smartypants.rb
aslakjo-comatose-2.0.5.11 lib/text_filters/markdown_smartypants.rb
aslakjo-comatose-2.0.5.10 lib/text_filters/markdown_smartypants.rb
aslakjo-comatose-2.0.5.9 lib/text_filters/markdown_smartypants.rb
aslakjo-comatose-2.0.5.8 lib/text_filters/markdown_smartypants.rb
aslakjo-comatose-2.0.5.7 lib/text_filters/markdown_smartypants.rb
merb_comatose-0.0.3 lib/text_filters/markdown_smartypants.rb
merb_comatose-0.0.2 lib/text_filters/markdown_smartypants.rb