metanorma / html2doc

Ruby gem that converts an HTML page/document into a Microsoft Word `.doc` file
Other
30 stars 2 forks source link

HTML spans within MathML should not be namespaced as MathML under Nokogiri 1.11 #64

Closed opoudjis closed 3 years ago

opoudjis commented 3 years ago

Arises from https://github.com/metanorma/html2doc/pull/63

opoudjis commented 3 years ago

This results from https://github.com/rubys/nokogumbo/issues/160 . It's an update that does make sense (if you add a child node, inherit its namespace), but we do need to now explicitly namespace the inserted spans as HTML.

opoudjis commented 3 years ago

In fact, we are having to do this manually, by stripping the namespaces in text: Word MHT cannot parse the explicit HTML namespaces, which Nokogiri 1.11 is inserting here.