Method: IsoDoc::Function::Inline#mathml_parse

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

#mathml_parse(node) ⇒ Object



97
98
99
100
101
102
# File 'lib/isodoc/function/inline.rb', line 97

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