gjtorikian / mathematical

Convert mathematical equations to SVGs, PNGs, or MathML. A general wrapper to Lasem and mtex2MML.
https://gjtorikian.github.io/mathematical/
MIT License
166 stars 31 forks source link

Underline not rendered correctly #114

Open zihlmalb opened 1 year ago

zihlmalb commented 1 year ago

As the underbrace also underline will not be rendered correctly:

Input:

require 'mathematical'

renderer = Mathematical.new()
result = renderer.render('$Q=\underline{A \cdot B \cdot C}$')
File.open("out.svg", 'w'){|f| f.puts result[:data]}

Output:

out

Don't know what that funny dotted ellipse does mean.

Comment:

Please fix this. Its affecting asciidoctor-mathematical for ages and should be solved finally. The same thing for the underbrace-issue. Thx.