chiark / gitweb /
m.math: it's <desc>, not <description>.
authorVladimír Vondruš <mosra@centrum.cz>
Wed, 1 Nov 2017 12:36:27 +0000 (13:36 +0100)
committerVladimí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

index 8ece82ee7df84e5e6741e3e49b67efcb0287bf95..afe510b320ca9c5dde7f1dba577fc1d9c2e92e00 100644 (file)
@@ -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>
-<description>
+<desc>
 {formula}
-</description>
+</desc>
 """
 
 unique_src = re.compile(r"""(?P<name> id|xlink:href)='(?P<ref>#?)(?P<id>g\d+-\d+|page\d+)'""")