def tex2html_does_typography(): """The tex2html util handles basic typography""" same(tex2html(r'\emph{coi}'), '<em>coi</em>') same(tex2html(r'\textbf{coi}'), '<strong>coi</strong>')
def tex2html_does_math(): """The tex2html util handles basic math""" same(tex2html('$x_1$'), 'x<sub>1</sub>') same(tex2html('$10^2$'), '10<sup>2</sup>') same(tex2html('$1*10$'), u'1×10')