lib/metanorma/un/converter.rb in metanorma-un-0.11.2 vs lib/metanorma/un/converter.rb in metanorma-un-0.11.3
- old
+ new
@@ -157,10 +157,12 @@
def doc_extract_attributes(node)
super.merge(toc: node.attributes.has_key?("toc"))
end
def presentation_xml_converter(node)
- IsoDoc::UN::PresentationXMLConvert.new(html_extract_attributes(node))
+ IsoDoc::UN::PresentationXMLConvert
+ .new(html_extract_attributes(node)
+ .merge(output_formats: ::Metanorma::UN::Processor.new.output_formats))
end
def html_converter(node)
IsoDoc::UN::HtmlConvert.new(html_extract_attributes(node))
end