lib/isodoc/mpfd/pdf_convert.rb in metanorma-mpfd-0.1.2 vs lib/isodoc/mpfd/pdf_convert.rb in metanorma-mpfd-0.1.3

- old
+ new

@@ -76,25 +76,9 @@ name&.children&.each { |c2| parse(c2, b) } end end end - def pre_parse(node, out) - out.pre node.text # content.gsub(/</, "&lt;").gsub(/>/, "&gt;") - end - - def error_parse(node, out) - # catch elements not defined in ISO - case node.name - when "pre" - pre_parse(node, out) - when "keyword" - out.span node.text, **{ class: "keyword" } - else - super - end - end - def fileloc(loc) File.join(File.dirname(__FILE__), loc) end def i18n_init(lang, script)