fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bit longer author field
[librarian.git]
/
src
/
librarian
/
elements
/
styles
/
mat.py
diff --git
a/src/librarian/elements/styles/mat.py
b/src/librarian/elements/styles/mat.py
index
f284695
..
68fcc3f
100644
(file)
--- a/
src/librarian/elements/styles/mat.py
+++ b/
src/librarian/elements/styles/mat.py
@@
-1,3
+1,6
@@
+# This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
+#
from copy import copy
from ..base import WLElement
from copy import copy
from ..base import WLElement
@@
-8,3
+11,7
@@
class Mat(WLElement):
e.tag = 'math'
e.attrib['xmlns'] = 'http://www.w3.org/1998/Math/MathML'
builder.cursor.append(e)
e.tag = 'math'
e.attrib['xmlns'] = 'http://www.w3.org/1998/Math/MathML'
builder.cursor.append(e)
+
+ def epub_build(self, builder):
+ builder.start_element('img', {"src": builder.mathml(self)})
+ builder.end_element()