Support for block annotations. Option to use endnotes in PDF.
[librarian.git] / src / librarian / elements / styles / mat.py
1 from copy import copy
2 from ..base import WLElement
3
4
5 class Mat(WLElement):
6     def html_build(self, builder):
7         e = copy(self)
8         e.tag = 'math'
9         e.attrib['xmlns'] = 'http://www.w3.org/1998/Math/MathML'
10         builder.cursor.append(e)
11
12     def epub_build(self, builder):
13         builder.start_element('img', {"src": builder.mathml(self)})
14         builder.end_element()