class Kramdown::Converter::Base

def self.convert(tree, options = {})

directory.
3. Append +.convertername+ to the template name and look for it in the kramdown data

file in the current working directory.
2. Append +.convertername+ (e.g. +.html+) to the template name and look for the resulting

1. Look in the current working directory for the template.

rendered into the specified template. The template resolution is done in the following way:
+tree+ as parameter. If the +template+ option is specified and non-empty, the result is
Initializes a new instance of the calling class and then calls the #convert method with

options that should be used.
string) and an array with warning messages. The parameter +options+ specifies the conversion
Convert the element tree +tree+ and return the resulting conversion object (normally a
def self.convert(tree, options = {})
  converter = new(tree, ::Kramdown::Options.merge(options.merge(tree.options[:options] || {})))
  result = converter.convert(tree)
  result = apply_template(converter, result) if !converter.options[:template].empty?
  result.encode!(tree.options[:encoding]) if result.respond_to?(:encode!)
  [result, converter.warnings]
end