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
publify_core-9.2.1 lib/publify_textfilter_smartypants.rb
publify_core-9.2.0 lib/publify_textfilter_smartypants.rb