Sha256: 45810951ac4405d1f771895d622e4213928f8c1cd41a169933da0167b08c5e9c

Contents?: true

Size: 311 Bytes

Versions: 6

Compression:

Stored size: 311 Bytes

Contents

#
# MARKDOWN + SMARTYPANTS
#
Comatose::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

6 entries across 6 versions & 1 rubygems

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