Sha256: a6715bf4543c7201fda44eb57c313060df50a5fdd1321d517352adbccd4112e3

Contents?: true

Size: 226 Bytes

Versions: 11

Compression:

Stored size: 226 Bytes

Contents

require 'rubypants/rubypants'

class SmartyPantsFilter < TextFilter
  filter_name "SmartyPants"
  description_file File.dirname(__FILE__) + "/../smartypants.html"   
  def filter(text)
    RubyPants.new(text).to_html
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
radiant-0.6.1 vendor/extensions/markdown_filter/lib/smarty_pants_filter.rb
radiant-0.6.0 vendor/extensions/markdown_filter/lib/smarty_pants_filter.rb
radiant-0.6.2 vendor/extensions/markdown_filter/lib/smarty_pants_filter.rb
radiant-0.6.3 vendor/extensions/markdown_filter/lib/smarty_pants_filter.rb
radiant-0.6.5.1 vendor/extensions/markdown_filter/lib/smarty_pants_filter.rb
radiant-0.6.4 vendor/extensions/markdown_filter/lib/smarty_pants_filter.rb
radiant-0.6.5 vendor/extensions/markdown_filter/lib/smarty_pants_filter.rb
radiant-0.6.7 vendor/extensions/markdown_filter/lib/smarty_pants_filter.rb
radiant-0.6.6 vendor/extensions/markdown_filter/lib/smarty_pants_filter.rb
radiant-0.6.8 vendor/extensions/markdown_filter/lib/smarty_pants_filter.rb
radiant-0.6.9 vendor/extensions/markdown_filter/lib/smarty_pants_filter.rb