2 from librarian import get_resource
3 from . import TreeEmbed, create_embed, downgrades_to, converts_to
5 class MathML(TreeEmbed):
6 @downgrades_to('application/x-latex')
8 xslt = etree.parse(get_resource('res/embeds/mathml/mathml2latex.xslt'))
9 output = self.tree.xslt(xslt)
10 return create_embed('application/x-latex', data=unicode(output))