Method: IsoDoc::Function::Inline#mathml_parse

Defined in:
lib/isodoc/function/inline.rb

#mathml_parse(node) ⇒ Object



89
90
91
92
93
94
# File 'lib/isodoc/function/inline.rb', line 89

def mathml_parse(node)
  # node.xpath("./m:math", MATHML).map(&:to_xml).join
  node.xpath(ns("./asciimath | ./latexmath")).each(&:remove)
  node.xpath(ns("./br")).each { |e| e.namespace = nil }
  node.elements
end