lib/metanorma/standoc/processor.rb in metanorma-standoc-1.4.1 vs lib/metanorma/standoc/processor.rb in metanorma-standoc-1.4.2

- old
+ new

@@ -23,15 +23,17 @@ def input_to_isodoc(file, filename) Metanorma::Input::Asciidoc.new.process(file, filename, @asciidoctor_backend) end - def output(isodoc_node, outname, format, options={}) + def output(isodoc_node, inname, outname, format, options={}) case format when :html - IsoDoc::HtmlConvert.new(options).convert(outname, isodoc_node) + IsoDoc::HtmlConvert.new(options).convert(inname, isodoc_node, nil, outname) when :doc - IsoDoc::WordConvert.new(options).convert(outname, isodoc_node) + IsoDoc::WordConvert.new(options).convert(inname, isodoc_node, nil, outname) + when :presentation + IsoDoc::PresentationXMLConvert.new(options).convert(inname, isodoc_node, nil, outname) else super end end end