lib/asciidoctor/iso/inline.rb in asciidoctor-iso-0.9.9 vs lib/asciidoctor/iso/inline.rb in asciidoctor-iso-0.10.0
- old
+ new
@@ -91,10 +91,10 @@
noko { |xml| xml.hr }.join("\n")
end
def stem_parse(text, xml)
if /<([^:>&]+:)?math(\s+[^>&]+)?> |
- <([^:>&]+:)?math(\s+[^>&]+)?>/x.match? text
+ <([^:>&]+:)?math(\s+[^>&]+)?>/x.match text
math = HTMLEntities.new.encode(text, :basic, :hexadecimal).
gsub(/&gt;/, ">").gsub(/\&lt;/, "<").gsub(/&amp;/, "&").
gsub(/>/, ">").gsub(/</, "<").gsub(/&/, "&")
xml.stem math, **{ type: "MathML" }
else