Sha256: 9b682fb86dff9d705db12a8cf0b475679c7eac6c8087868ac9fd65d3a274e5de

Contents?: true

Size: 369 Bytes

Versions: 22

Compression:

Stored size: 369 Bytes

Contents

# frozen_string_literal: true

require "rubypants"

class PublifyApp
  class Textfilter
    class Smartypants < TextFilterPlugin::PostProcess
      plugin_display_name "Smartypants"
      plugin_description "Converts HTML to use typographically correct quotes and dashes"

      def self.filtertext(text)
        RubyPants.new(text).to_html
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
HornsAndHooves-publify_core-10.5.0 lib/publify_textfilter_smartypants.rb
HornsAndHooves-publify_core-10.4.0 lib/publify_textfilter_smartypants.rb
HornsAndHooves-publify_core-10.3.0 lib/publify_textfilter_smartypants.rb
HornsAndHooves-publify_core-10.2.0 lib/publify_textfilter_smartypants.rb
publify_core-10.0.0 lib/publify_textfilter_smartypants.rb
publify_core-9.2.10 lib/publify_textfilter_smartypants.rb
HornsAndHooves-publify_core-10.1.1 lib/publify_textfilter_smartypants.rb
HornsAndHooves-publify_core-10.1.0 lib/publify_textfilter_smartypants.rb
HornsAndHooves-publify_core-10.0.3 lib/publify_textfilter_smartypants.rb
HornsAndHooves-publify_core-10.0.2 lib/publify_textfilter_smartypants.rb
HornsAndHooves-publify_core-10.0.1 lib/publify_textfilter_smartypants.rb
HornsAndHooves-publify_core-10.0.0 lib/publify_textfilter_smartypants.rb
publify_core-9.2.9 lib/publify_textfilter_smartypants.rb
publify_core-9.2.8 lib/publify_textfilter_smartypants.rb
publify_core-9.2.7 lib/publify_textfilter_smartypants.rb
publify_core-9.2.6 lib/publify_textfilter_smartypants.rb
publify_core-9.2.5 lib/publify_textfilter_smartypants.rb
publify_core-9.2.4 lib/publify_textfilter_smartypants.rb
publify_core-9.2.3 lib/publify_textfilter_smartypants.rb
publify_core-9.2.2 lib/publify_textfilter_smartypants.rb