class Bunto::Converters::SmartyPants

Public Class Methods

new(config) click to toggle source
# File lib/bunto/converters/smartypants.rb, line 15
def initialize(config)
  Bunto::External.require_with_graceful_fail "kramdown"
  @config = config["kramdown"].dup || {}
  @config[:input] = :SmartyPants
end

Public Instance Methods

convert(content) click to toggle source
# File lib/bunto/converters/smartypants.rb, line 29
def convert(content)
  Kramdown::Document.new(content, @config).to_html.chomp
end
matches(_) click to toggle source
# File lib/bunto/converters/smartypants.rb, line 21
def matches(_)
  false
end
output_ext(_) click to toggle source
# File lib/bunto/converters/smartypants.rb, line 25
def output_ext(_)
  nil
end