lib/metanorma/rfc/processor_v2.rb in asciidoctor-rfc-0.9.1 vs lib/metanorma/rfc/processor_v2.rb in asciidoctor-rfc-0.9.2

- old
+ new

@@ -18,17 +18,11 @@ def version "Asciidoctor::Rfc2 #{Asciidoctor::RFC::VERSION}" end - def input_to_isodoc(file) - Asciidoctor.convert( - file, - to_file: false, - safe: :safe, - backend: @asciidoctor_backend, - header_footer: true - ) + def input_to_isodoc(file, filename) + Metanorma::Input::Asciidoc.new.process(file, filename, @asciidoctor_backend) end def output(isodoc_node, outname, format, options={}) case format when :xmlrfc