lib/isodoc/csand/html_convert.rb in metanorma-csand-1.0.9 vs lib/isodoc/csand/html_convert.rb in metanorma-csand-1.0.10

- old
+ new

@@ -40,14 +40,10 @@ 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 term_defs_boilerplate(div, source, term, preface) if source.empty? && term.nil? div << @no_terms_boilerplate else div << term_defs_boilerplate_cont(source, term) @@ -55,21 +51,9 @@ end def i18n_init(lang, script) super @annex_lbl = "Appendix" - 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 html_head() <<~HEAD.freeze <title>{{ doctitle }}</title>