chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fa7610
)
m.math: it's <desc>, not <description>.
author
Vladimír Vondruš
<mosra@centrum.cz>
Wed, 1 Nov 2017 12:36:27 +0000
(13:36 +0100)
committer
Vladimír Vondruš
<mosra@centrum.cz>
Wed, 1 Nov 2017 23:02:12 +0000
(
00:02
+0100)
*Now* it's valid HTML5.
pelican-plugins/m/math.py
patch
|
blob
|
history
diff --git
a/pelican-plugins/m/math.py
b/pelican-plugins/m/math.py
index 8ece82ee7df84e5e6741e3e49b67efcb0287bf95..afe510b320ca9c5dde7f1dba577fc1d9c2e92e00 100644
(file)
--- a/
pelican-plugins/m/math.py
+++ b/
pelican-plugins/m/math.py
@@
-54,9
+54,9
@@
patch_src = re.compile(r"""<\?xml version='1.0' encoding='UTF-8'\?>
patch_dst = r"""<svg{attribs} \g<attribs>>
<title>LaTeX Math</title>
-<desc
ription
>
+<desc>
{formula}
-</desc
ription
>
+</desc>
"""
unique_src = re.compile(r"""(?P<name> id|xlink:href)='(?P<ref>#?)(?P<id>g\d+-\d+|page\d+)'""")