class Kramdown::Converter::Base
def self.convert(doc)
be implemented by each subclass. If the +template+ option is specified and non-empty, the
Initializes a new instance of the calling class and then calls the #convert method that must
Convert the Kramdown document +doc+ to the output format implemented by a subclass.
def self.convert(doc) result = new(doc).convert(doc.tree) result = apply_template(doc, result) if !doc.options[:template].empty? result end