marianoguerra / rst2html5

transform restructuredtext documents to html5 + twitter's bootstrap css, deck.js or reveal.js
http://marianoguerra.github.com/rst2html5
MIT License
177 stars 51 forks source link

Math content is escaped twice. #79

Closed torfsen closed 8 years ago

torfsen commented 8 years ago

Math content is currently escaped twice: The HTML generated for

:math:`1 < 2`

contains &amp;lt;. That is, the < is escaped once, producing &lt;, and then the & is also escaped (as &amp;).

Correct would be to simply escape the < once using &lt;.