lib/asciidoctor/standoc/cleanup.rb in metanorma-standoc-1.8.3 vs lib/asciidoctor/standoc/cleanup.rb in metanorma-standoc-1.8.4

- old
+ new

@@ -43,11 +43,10 @@ reference_names(xmldoc) symbols_cleanup(xmldoc) xref_cleanup(xmldoc) concept_cleanup(xmldoc) origin_cleanup(xmldoc) - svgmap_cleanup(xmldoc) termdef_cleanup(xmldoc) RelatonIev::iev_cleanup(xmldoc, @bibdb) element_name_cleanup(xmldoc) bpart_cleanup(xmldoc) quotesource_cleanup(xmldoc) @@ -57,10 +56,11 @@ script_cleanup(xmldoc) docidentifier_cleanup(xmldoc) bookmark_cleanup(xmldoc) requirement_cleanup(xmldoc) bibdata_cleanup(xmldoc) + svgmap_cleanup(xmldoc) boilerplate_cleanup(xmldoc) smartquotes_cleanup(xmldoc) variant_cleanup(xmldoc) para_cleanup(xmldoc) empty_element_cleanup(xmldoc) @@ -170,10 +170,10 @@ end end def img_cleanup(xmldoc) return xmldoc unless @datauriimage - xmldoc.xpath("//image").each { |i| i["src"] = datauri(i["src"]) } + xmldoc.xpath("//image").each { |i| i["src"] = Metanorma::Utils::datauri(i["src"], @localdir) } end def variant_cleanup(xmldoc) xmldoc.xpath("//*[variant]").each do |c| c&.next&.text? && c&.next&.next&.name == "variant" && c.next.text.gsub(/\s/, "").empty? and