Method: IsoDoc::PresentationXMLConvert#mathml_number_to_number

Defined in:
lib/isodoc/presentation_function/math.rb

#mathml_number_to_number(node) ⇒ Object



209
210
211
212
213
214
215
216
217
# File 'lib/isodoc/presentation_function/math.rb', line 209

def mathml_number_to_number(node)
  (node.elements.size == 1 && node.elements.first.name == "mn") or return
  repl = node.at("./m:mn", MATHML).children
  #if node.parent.name == "stem"
    #node.parent.replace(repl)
  #else
    node.replace(repl)
  #end
end