class Kramdown::Parser::SmartyPants

Public Class Methods

new(source, options) click to toggle source
Calls superclass method
# File lib/jekyll/converters/smartypants.rb, line 6
def initialize(source, options)
  super
  @block_parsers = [:block_html, :content]
  @span_parsers =  [:smart_quotes, :html_entity, :typographic_syms, :span_html]
end

Public Instance Methods

parse_content() click to toggle source
# File lib/jekyll/converters/smartypants.rb, line 12
def parse_content
  add_text @src.scan(%r!\A.*\n!)
end