class Asciidoctor::Document

def create_converter backend, delegate_backend

QUESTION is there any additional information we should be passing to the converter?
--
Internal: Create and initialize an instance of the converter for this document
def create_converter backend, delegate_backend
  converter_opts = { document: self, htmlsyntax: @attributes['htmlsyntax'] }
  if (template_dirs = (opts = @options)[:template_dirs] || opts[:template_dir])
    converter_opts[:template_dirs] = [*template_dirs]
    converter_opts[:template_cache] = opts.fetch :template_cache, true
    converter_opts[:template_engine] = opts[:template_engine]
    converter_opts[:template_engine_options] = opts[:template_engine_options]
    converter_opts[:eruby] = opts[:eruby]
    converter_opts[:safe] = @safe
    converter_opts[:delegate_backend] = delegate_backend if delegate_backend
  end
  if (converter = opts[:converter])
    (Converter::CustomFactory.new backend => converter).create backend, converter_opts
  else
    (opts.fetch :converter_factory, Converter).create backend, converter_opts
  end
end