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