# File lib/kramdown/converter/base.rb, line 89 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, converter.warnings] end