Sha256: 78584fdd6536d58fb9f5d2b39d9a381321ac7424d73d2d0bd6892a2ceaa2a041

Contents?: true

Size: 742 Bytes

Versions: 31

Compression:

Stored size: 742 Bytes

Contents

class Kramdown::Parser::SmartyPants < Kramdown::Parser::Kramdown
  def initialize(source, options)
    super
    @block_parsers = [:block_html]
    @span_parsers =  [:smart_quotes, :html_entity, :typographic_syms, :span_html]
  end
end

module Jekyll
  module Converters
    class SmartyPants < Converter
      safe true
      priority :low

      def initialize(config)
        Jekyll::External.require_with_graceful_fail "kramdown"
        @config = config["kramdown"].dup || {}
        @config[:input] = :SmartyPants
      end

      def matches(_)
        false
      end

      def output_ext(_)
        nil
      end

      def convert(content)
        Kramdown::Document.new(content, @config).to_html.chomp
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 3 rubygems

Version Path
jekyll-3.1.5 lib/jekyll/converters/smartypants.rb
jekyll-3.1.4 lib/jekyll/converters/smartypants.rb
jekyll-3.1.3 lib/jekyll/converters/smartypants.rb
jekyll-3.1.2 lib/jekyll/converters/smartypants.rb
jekyllplusadmin-1.1.0 lib/jekyll/converters/smartypants.rb
jekyllplusadmin-1.0.0 lib/jekyll/converters/smartypants.rb
jekyll-3.1.1 lib/jekyll/converters/smartypants.rb
jekyll-3.1.0 lib/jekyll/converters/smartypants.rb
jekyll-3.1.0.pre.rc3 lib/jekyll/converters/smartypants.rb
jekyll-3.1.0.pre.rc2 lib/jekyll/converters/smartypants.rb
jekyll-3.1.0.pre.rc1 lib/jekyll/converters/smartypants.rb