1 # -*- coding: utf-8 -*-
3 from librarian import get_resource
4 from . import TreeEmbed, create_embed, downgrades_to
7 class MathML(TreeEmbed):
8 @downgrades_to('application/x-latex')
10 xslt = etree.parse(get_resource('res/embeds/mathml/mathml2latex.xslt'))
11 output = self.tree.xslt(xslt)
12 return create_embed('application/x-latex', data=unicode(output))