chiark / gitweb /
m.math: having "LaTeX Math" in a hover title is as useless as it can get.
authorVladimír Vondruš <mosra@centrum.cz>
Mon, 18 Jun 2018 07:50:30 +0000 (09:50 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Mon, 18 Jun 2018 13:23:43 +0000 (15:23 +0200)
I thought browsers would show the <desc> as well, but no. So putting the
math formula directly in the <title>.

doxygen/test/contents_custom/math.html
doxygen/test/contents_math/index.html
doxygen/test/contents_math_cached/math.html
pelican-plugins/latex2svgextra.py
pelican-plugins/m/test/math/page.html
pelican-plugins/m/test/math_cached/page.html

index 784fff40a23f7efe5aaa1f83916a21562fca26ad..ed83d1eaed417179074e43bf361212c1a80d0c8d 100644 (file)
           Math
         </h1>
 <p>A green formula:</p><div class="m-math m-success"><svg height='12.5906pt' version='1.1' viewBox='188.371 -10.0725 11.3035 10.0725' width='14.1293pt'>
-<title>LaTeX Math</title>
-<desc>
+<title>
 \[ \pi^2 \]
-</desc>
+</title>
 <defs>
 <path d='M3.09639 -4.5071H4.44732C4.12453 -3.16812 3.9213 -2.29539 3.9213 -1.33898C3.9213 -1.17161 3.9213 0.119552 4.41146 0.119552C4.66252 0.119552 4.87771 -0.107597 4.87771 -0.310834C4.87771 -0.37061 4.87771 -0.394521 4.79402 -0.573848C4.47123 -1.39875 4.47123 -2.4269 4.47123 -2.51059C4.47123 -2.58232 4.47123 -3.43113 4.72229 -4.5071H6.06127C6.21669 -4.5071 6.61121 -4.5071 6.61121 -4.88966C6.61121 -5.15268 6.38406 -5.15268 6.16887 -5.15268H2.23562C1.96065 -5.15268 1.55417 -5.15268 1.00423 -4.56687C0.6934 -4.22017 0.310834 -3.58655 0.310834 -3.51482S0.37061 -3.41918 0.442341 -3.41918C0.526027 -3.41918 0.537983 -3.45504 0.597758 -3.52677C1.21943 -4.5071 1.8411 -4.5071 2.13998 -4.5071H2.82142C2.55841 -3.61046 2.25953 -2.57036 1.2792 -0.478207C1.18356 -0.286924 1.18356 -0.263014 1.18356 -0.191283C1.18356 0.0597758 1.39875 0.119552 1.50635 0.119552C1.85305 0.119552 1.94869 -0.191283 2.09215 -0.6934C2.28344 -1.30311 2.28344 -1.32702 2.40299 -1.80523L3.09639 -4.5071Z' id='eq1-g0-25'/>
 <path d='M2.24757 -1.6259C2.37509 -1.74545 2.70984 -2.00847 2.83736 -2.12005C3.33151 -2.57435 3.80174 -3.0127 3.80174 -3.73798C3.80174 -4.68643 3.00473 -5.30012 2.00847 -5.30012C1.05205 -5.30012 0.422416 -4.57484 0.422416 -3.8655C0.422416 -3.47497 0.73325 -3.41918 0.844832 -3.41918C1.0122 -3.41918 1.25928 -3.53873 1.25928 -3.84159C1.25928 -4.25604 0.860772 -4.25604 0.765131 -4.25604C0.996264 -4.83786 1.53026 -5.03711 1.9208 -5.03711C2.66202 -5.03711 3.04458 -4.40747 3.04458 -3.73798C3.04458 -2.90909 2.46276 -2.30336 1.52229 -1.33898L0.518057 -0.302864C0.422416 -0.215193 0.422416 -0.199253 0.422416 0H3.57061L3.80174 -1.42665H3.55467C3.53076 -1.26725 3.467 -0.868742 3.37136 -0.71731C3.32354 -0.653549 2.71781 -0.653549 2.59029 -0.653549H1.17161L2.24757 -1.6259Z' id='eq1-g1-50'/>
 <use x='195.44' xlink:href='#eq1-g1-50' y='-4.93619'/>
 </g>
 </svg></div><p>A yellow  <svg class="m-math m-warning" style="vertical-align: -0.0pt;" height='10.2117pt' version='1.1' viewBox='0 -8.16937 8.45432 8.16937' width='10.5679pt'>
-<title>LaTeX Math</title>
-<desc>
+<title>
 $ \Sigma $
-</desc>
+</title>
 <defs>
 <path d='M4.23213 -3.88543C4.32777 -4.00498 4.35168 -4.02889 4.35168 -4.08867C4.35168 -4.11258 4.35168 -4.13649 4.27995 -4.23213L1.86501 -7.81868H4.68643C6.69489 -7.81868 7.30461 -7.38829 7.53176 -5.49938H7.79477L7.48394 -8.16538H0.944458C0.657534 -8.16538 0.645579 -8.16538 0.645579 -7.89041L3.55068 -3.58655L0.777086 -0.310834C0.681445 -0.203238 0.657534 -0.167372 0.657534 -0.119552C0.657534 0 0.753176 0 0.944458 0H7.48394L7.79477 -2.78555H7.53176C7.31656 -0.812951 6.56339 -0.466252 4.65056 -0.466252H1.33898L4.23213 -3.88543Z' id='eq2-g0-6'/>
 </defs>
index e954bff6be9eb3452d17b132a66f90f0d1347596..46dc9a1f25158a64db8a02864b0620989b1c7c16 100644 (file)
           My Project
         </h1>
 <p>Here&#x27;s a block formula:</p><div class="m-math"><svg height='27.0023pt' version='1.1' viewBox='148.249 -21.6018 92.0442 21.6018' width='115.055pt'>
-<title>LaTeX Math</title>
-<desc>
+<title>
 \[ \hat q = [\boldsymbol 0, 1] + \epsilon [\frac{\boldsymbol v}{2}, 0] \]
-</desc>
+</title>
 <defs>
 <path d='M6.46775 -4.32777C6.46775 -5.41569 5.66675 -5.41569 5.65479 -5.41569C5.17659 -5.41569 4.7462 -4.91357 4.7462 -4.5071C4.7462 -4.17235 4.99726 -4.02889 5.10486 -3.96912C5.60697 -3.67024 5.70262 -3.45504 5.70262 -3.21594C5.70262 -2.95293 5.00922 -0.334745 3.61046 -0.334745C2.74969 -0.334745 2.74969 -1.05205 2.74969 -1.26725C2.74969 -1.96065 3.08443 -2.83337 3.467 -3.78979C3.56264 -4.02889 3.59851 -4.13649 3.59851 -4.32777C3.59851 -5.02117 2.90511 -5.40374 2.24757 -5.40374C0.980324 -5.40374 0.382565 -3.77783 0.382565 -3.53873C0.382565 -3.37136 0.561893 -3.37136 0.669489 -3.37136C0.812951 -3.37136 0.896638 -3.37136 0.944458 -3.52677C1.32702 -4.81793 1.96065 -4.97335 2.17584 -4.97335C2.25953 -4.97335 2.37908 -4.97335 2.37908 -4.72229C2.37908 -4.44732 2.23562 -4.10062 2.19975 -4.00498C1.64981 -2.61818 1.47049 -2.0802 1.47049 -1.50635C1.47049 -0.239103 2.49863 0.0956413 3.53873 0.0956413C5.59502 0.0956413 6.46775 -3.29963 6.46775 -4.32777Z' id='eq1-g0-118'/>
 <path d='M6.18082 -3.8137C6.18082 -4.96139 6.18082 -7.84259 3.3594 -7.84259C0.526027 -7.84259 0.526027 -4.97335 0.526027 -3.8137C0.526027 -2.666 0.526027 0.143462 3.34745 0.143462S6.18082 -2.63014 6.18082 -3.8137ZM3.3594 -0.251059C2.97684 -0.251059 2.68991 -0.406476 2.45081 -0.657534C2.15193 -0.956413 1.96065 -1.1477 1.96065 -3.95716C1.96065 -4.79402 1.96065 -5.55915 2.05629 -6.18082C2.22366 -7.36438 3.08443 -7.44807 3.34745 -7.44807C3.73001 -7.44807 4.47123 -7.26874 4.63861 -6.26451C4.7462 -5.65479 4.7462 -4.68643 4.7462 -3.95716C4.7462 -1.13574 4.56687 -0.968369 4.20822 -0.609714C3.96912 -0.37061 3.64633 -0.251059 3.3594 -0.251059Z' id='eq1-g1-48'/>
 <use x='237.042' xlink:href='#eq1-g3-93' y='-8.20066'/>
 </g>
 </svg></div><p>And <svg class="m-math" style="vertical-align: -2.9pt;" height='13.2835pt' version='1.1' viewBox='0 -8.30219 6.71157 10.6268' width='8.38946pt'>
-<title>LaTeX Math</title>
-<desc>
+<title>
 $ \hat q $
-</desc>
+</title>
 <defs>
 <path d='M5.27223 -5.15268C5.27223 -5.21245 5.22441 -5.26027 5.16463 -5.26027C5.06899 -5.26027 4.60274 -4.82989 4.37559 -4.41146C4.1604 -4.94944 3.78979 -5.27223 3.27572 -5.27223C1.92478 -5.27223 0.466252 -3.52677 0.466252 -1.75741C0.466252 -0.573848 1.15965 0.119552 1.9726 0.119552C2.60623 0.119552 3.13225 -0.358655 3.38331 -0.633624L3.39527 -0.621669L2.94097 1.17161L2.83337 1.60199C2.72578 1.96065 2.54645 1.96065 1.98456 1.9726C1.85305 1.9726 1.7335 1.9726 1.7335 2.19975C1.7335 2.28344 1.80523 2.3193 1.88892 2.3193C2.05629 2.3193 2.27148 2.29539 2.43885 2.29539H3.65828C3.83761 2.29539 4.04085 2.3193 4.22017 2.3193C4.29191 2.3193 4.43537 2.3193 4.43537 2.09215C4.43537 1.9726 4.33973 1.9726 4.1604 1.9726C3.59851 1.9726 3.56264 1.88892 3.56264 1.79328C3.56264 1.7335 3.5746 1.72154 3.61046 1.56613L5.27223 -5.15268ZM3.58655 -1.42267C3.52677 -1.21943 3.52677 -1.19552 3.3594 -0.968369C3.09639 -0.633624 2.57036 -0.119552 2.00847 -0.119552C1.51831 -0.119552 1.24334 -0.561893 1.24334 -1.26725C1.24334 -1.92478 1.61395 -3.26376 1.8411 -3.76588C2.24757 -4.60274 2.80946 -5.03313 3.27572 -5.03313C4.06476 -5.03313 4.22017 -4.0528 4.22017 -3.95716C4.22017 -3.94521 4.18431 -3.78979 4.17235 -3.76588L3.58655 -1.42267Z' id='eq2-g0-113'/>
 <path d='M2.92902 -8.29689L1.36289 -6.67098L1.55417 -6.49166L2.91706 -7.72304L4.29191 -6.49166L4.48319 -6.67098L2.92902 -8.29689Z' id='eq2-g1-94'/>
@@ -75,10 +73,9 @@ $ \hat q $
 <use x='0' xlink:href='#eq2-g0-113' y='0'/>
 </g>
 </svg> is how quaternion is denoted.</p><div class="m-math"><svg height='13.7321pt' version='1.1' viewBox='164.011 -10.9857 60.0231 10.9857' width='75.0289pt'>
-<title>LaTeX Math</title>
-<desc>
+<title>
 \[ a^2 + b^2 = c^2 \]
-</desc>
+</title>
 <defs>
 <path d='M3.59851 -1.42267C3.53873 -1.21943 3.53873 -1.19552 3.37136 -0.968369C3.10834 -0.633624 2.58232 -0.119552 2.02042 -0.119552C1.53026 -0.119552 1.25529 -0.561893 1.25529 -1.26725C1.25529 -1.92478 1.6259 -3.26376 1.85305 -3.76588C2.25953 -4.60274 2.82142 -5.03313 3.28767 -5.03313C4.07671 -5.03313 4.23213 -4.0528 4.23213 -3.95716C4.23213 -3.94521 4.19626 -3.78979 4.18431 -3.76588L3.59851 -1.42267ZM4.36364 -4.48319C4.23213 -4.79402 3.90934 -5.27223 3.28767 -5.27223C1.93674 -5.27223 0.478207 -3.52677 0.478207 -1.75741C0.478207 -0.573848 1.17161 0.119552 1.98456 0.119552C2.64209 0.119552 3.20399 -0.394521 3.53873 -0.789041C3.65828 -0.0836862 4.22017 0.119552 4.57883 0.119552S5.22441 -0.0956413 5.4396 -0.526027C5.63088 -0.932503 5.79826 -1.66177 5.79826 -1.70959C5.79826 -1.76936 5.75044 -1.81719 5.6787 -1.81719C5.57111 -1.81719 5.55915 -1.75741 5.51133 -1.57808C5.332 -0.872727 5.10486 -0.119552 4.61469 -0.119552C4.268 -0.119552 4.24408 -0.430386 4.24408 -0.669489C4.24408 -0.944458 4.27995 -1.07597 4.38755 -1.54222C4.47123 -1.8411 4.53101 -2.10411 4.62665 -2.45081C5.06899 -4.24408 5.17659 -4.67447 5.17659 -4.7462C5.17659 -4.91357 5.04508 -5.04508 4.86575 -5.04508C4.48319 -5.04508 4.38755 -4.62665 4.36364 -4.48319Z' id='eq3-g0-97'/>
 <path d='M2.76164 -7.99801C2.7736 -8.04583 2.79751 -8.11756 2.79751 -8.17733C2.79751 -8.29689 2.67796 -8.29689 2.65405 -8.29689C2.64209 -8.29689 2.21171 -8.26102 1.99651 -8.23711C1.79328 -8.22516 1.61395 -8.20125 1.39875 -8.18929C1.11183 -8.16538 1.02814 -8.15342 1.02814 -7.93823C1.02814 -7.81868 1.1477 -7.81868 1.26725 -7.81868C1.87696 -7.81868 1.87696 -7.71108 1.87696 -7.59153C1.87696 -7.50785 1.78132 -7.16115 1.7335 -6.94595L1.44658 -5.79826C1.32702 -5.32005 0.645579 -2.60623 0.597758 -2.39103C0.537983 -2.09215 0.537983 -1.88892 0.537983 -1.7335C0.537983 -0.514072 1.21943 0.119552 1.99651 0.119552C3.38331 0.119552 4.81793 -1.66177 4.81793 -3.39527C4.81793 -4.49514 4.19626 -5.27223 3.29963 -5.27223C2.67796 -5.27223 2.11606 -4.75816 1.88892 -4.51905L2.76164 -7.99801ZM2.00847 -0.119552C1.6259 -0.119552 1.20747 -0.406476 1.20747 -1.33898C1.20747 -1.7335 1.24334 -1.96065 1.45853 -2.79751C1.4944 -2.95293 1.68568 -3.71806 1.7335 -3.87347C1.75741 -3.96912 2.46276 -5.03313 3.27572 -5.03313C3.80174 -5.03313 4.04085 -4.5071 4.04085 -3.88543C4.04085 -3.31158 3.7061 -1.96065 3.40722 -1.33898C3.10834 -0.6934 2.55841 -0.119552 2.00847 -0.119552Z' id='eq3-g0-98'/>
@@ -98,10 +95,9 @@ $ \hat q $
 <use x='219.8' xlink:href='#eq3-g1-50' y='-5.84939'/>
 </g>
 </svg></div><p><svg class="m-math" style="vertical-align: -0.0pt;" height='11.8434pt' version='1.1' viewBox='0 -9.47474 9.27217 9.47474' width='11.5902pt'>
-<title>LaTeX Math</title>
-<desc>
+<title>
 $c^2$
-</desc>
+</title>
 <defs>
 <path d='M4.67447 -4.49514C4.44732 -4.49514 4.33973 -4.49514 4.17235 -4.35168C4.10062 -4.29191 3.96912 -4.11258 3.96912 -3.9213C3.96912 -3.68219 4.14844 -3.53873 4.37559 -3.53873C4.66252 -3.53873 4.98531 -3.77783 4.98531 -4.25604C4.98531 -4.82989 4.43537 -5.27223 3.61046 -5.27223C2.04433 -5.27223 0.478207 -3.56264 0.478207 -1.86501C0.478207 -0.824907 1.12379 0.119552 2.34321 0.119552C3.96912 0.119552 4.99726 -1.1477 4.99726 -1.30311C4.99726 -1.37484 4.92553 -1.43462 4.87771 -1.43462C4.84184 -1.43462 4.82989 -1.42267 4.72229 -1.31507C3.95716 -0.298879 2.82142 -0.119552 2.36712 -0.119552C1.54222 -0.119552 1.2792 -0.836862 1.2792 -1.43462C1.2792 -1.85305 1.48244 -3.0127 1.91283 -3.82565C2.22366 -4.38755 2.86924 -5.03313 3.62242 -5.03313C3.77783 -5.03313 4.43537 -5.00922 4.67447 -4.49514Z' id='eq4-g0-99'/>
 <path d='M2.24757 -1.6259C2.37509 -1.74545 2.70984 -2.00847 2.83736 -2.12005C3.33151 -2.57435 3.80174 -3.0127 3.80174 -3.73798C3.80174 -4.68643 3.00473 -5.30012 2.00847 -5.30012C1.05205 -5.30012 0.422416 -4.57484 0.422416 -3.8655C0.422416 -3.47497 0.73325 -3.41918 0.844832 -3.41918C1.0122 -3.41918 1.25928 -3.53873 1.25928 -3.84159C1.25928 -4.25604 0.860772 -4.25604 0.765131 -4.25604C0.996264 -4.83786 1.53026 -5.03711 1.9208 -5.03711C2.66202 -5.03711 3.04458 -4.40747 3.04458 -3.73798C3.04458 -2.90909 2.46276 -2.30336 1.52229 -1.33898L0.518057 -0.302864C0.422416 -0.215193 0.422416 -0.199253 0.422416 0H3.57061L3.80174 -1.42665H3.55467C3.53076 -1.26725 3.467 -0.868742 3.37136 -0.71731C3.32354 -0.653549 2.71781 -0.653549 2.59029 -0.653549H1.17161L2.24757 -1.6259Z' id='eq4-g1-50'/>
@@ -111,10 +107,9 @@ $c^2$
 <use x='5.03799' xlink:href='#eq4-g1-50' y='-4.33844'/>
 </g>
 </svg> should be part of a new paragraph, not stuck out of it. The following formula has a custom environment:</p><div class="m-math"><svg height='48.331pt' version='1.1' viewBox='136.775 -38.6648 114.495 38.6648' width='143.118pt'>
-<title>LaTeX Math</title>
-<desc>
+<title>
 \begin{eqnarray*} g &=& \frac{Gm_2}{r^2} \\ &=& 9.82066032\,\mbox{m/s}^2 \end{eqnarray*}
-</desc>
+</title>
 <defs>
 <path d='M2.19975 -0.573848C2.19975 -0.920548 1.91283 -1.15965 1.6259 -1.15965C1.2792 -1.15965 1.0401 -0.872727 1.0401 -0.585803C1.0401 -0.239103 1.32702 0 1.61395 0C1.96065 0 2.19975 -0.286924 2.19975 -0.573848Z' id='eq5-g0-58'/>
 <path d='M8.91856 -8.30884C8.91856 -8.41644 8.83487 -8.41644 8.81096 -8.41644S8.73923 -8.41644 8.64359 -8.29689L7.81868 -7.30461C7.7589 -7.40025 7.5198 -7.81868 7.05355 -8.09365C6.53948 -8.41644 6.0254 -8.41644 5.84608 -8.41644C3.28767 -8.41644 0.597758 -5.81021 0.597758 -2.98879C0.597758 -1.01619 1.96065 0.251059 3.75392 0.251059C4.61469 0.251059 5.70262 -0.0358655 6.30037 -0.789041C6.43188 -0.334745 6.69489 -0.0119552 6.77858 -0.0119552C6.83836 -0.0119552 6.85031 -0.0478207 6.86227 -0.0478207C6.87422 -0.071731 6.96986 -0.490162 7.02964 -0.705355L7.22092 -1.47049C7.31656 -1.86501 7.36438 -2.03238 7.44807 -2.39103C7.56762 -2.84533 7.59153 -2.8812 8.24907 -2.89315C8.29689 -2.89315 8.44035 -2.89315 8.44035 -3.1203C8.44035 -3.23985 8.3208 -3.23985 8.28493 -3.23985C8.08169 -3.23985 7.85455 -3.21594 7.63935 -3.21594H6.99377C6.49166 -3.21594 5.96563 -3.23985 5.47547 -3.23985C5.36787 -3.23985 5.22441 -3.23985 5.22441 -3.02466C5.22441 -2.90511 5.32005 -2.90511 5.32005 -2.89315H5.61893C6.56339 -2.89315 6.56339 -2.79751 6.56339 -2.61818C6.56339 -2.60623 6.33624 -1.39875 6.10909 -1.0401C5.65479 -0.37061 4.71034 -0.0956413 4.00498 -0.0956413C3.08443 -0.0956413 1.59004 -0.573848 1.59004 -2.64209C1.59004 -3.44309 1.87696 -5.27223 3.03661 -6.62316C3.78979 -7.48394 4.90162 -8.06974 5.95367 -8.06974C7.36438 -8.06974 7.8665 -6.86227 7.8665 -5.76239C7.8665 -5.57111 7.81868 -5.30809 7.81868 -5.14072C7.81868 -5.03313 7.93823 -5.03313 7.9741 -5.03313C8.1056 -5.03313 8.11756 -5.04508 8.16538 -5.26027L8.91856 -8.30884Z' id='eq5-g0-71'/>
index 533ac542aae8ee5b48988443538e6d8d3868611f..8e56824b593477b40b1e0f4fb5a03ebc3d70f2fc 100644 (file)
           Math
         </h1>
 <p>In order to actually test use of the cache, I need to cheat a bit. Inline formula which is pi in the source but <svg class="m-math" style="vertical-align: -5.2pt;" height='15.3267pt' version='1.1' viewBox='1.19551 -8.1387 4.67835 12.2613' width='5.84794pt'>
-<title>LaTeX Math</title>
-<desc>
+<title>
 $ \pi $
-</desc>
+</title>
 <defs>
 <path d='M2.50262 -2.90909H3.92927C4.05679 -2.90909 4.14446 -2.90909 4.22416 -2.97285C4.3198 -3.06052 4.34371 -3.16413 4.34371 -3.21196C4.34371 -3.43512 4.14446 -3.43512 4.00897 -3.43512H1.60199C1.43462 -3.43512 1.13176 -3.43512 0.74122 -3.05255C0.454296 -2.76563 0.231133 -2.399 0.231133 -2.34321C0.231133 -2.27148 0.286924 -2.24757 0.350685 -2.24757C0.430386 -2.24757 0.446326 -2.27148 0.494147 -2.33524C0.884682 -2.90909 1.35492 -2.90909 1.53823 -2.90909H2.22366L1.53823 -0.70137C1.48244 -0.518057 1.37883 -0.191283 1.37883 -0.151432C1.37883 0.0318804 1.5462 0.0956413 1.64184 0.0956413C1.93674 0.0956413 1.98456 -0.183313 2.00847 -0.302864L2.50262 -2.90909Z' id='eq1-g0-28'/>
 <path d='M2.24757 -1.6259C2.37509 -1.74545 2.70984 -2.00847 2.83736 -2.12005C3.33151 -2.57435 3.80174 -3.0127 3.80174 -3.73798C3.80174 -4.68643 3.00473 -5.30012 2.00847 -5.30012C1.05205 -5.30012 0.422416 -4.57484 0.422416 -3.8655C0.422416 -3.47497 0.73325 -3.41918 0.844832 -3.41918C1.0122 -3.41918 1.25928 -3.53873 1.25928 -3.84159C1.25928 -4.25604 0.860772 -4.25604 0.765131 -4.25604C0.996264 -4.83786 1.53026 -5.03711 1.9208 -5.03711C2.66202 -5.03711 3.04458 -4.40747 3.04458 -3.73798C3.04458 -2.90909 2.46276 -2.30336 1.52229 -1.33898L0.518057 -0.302864C0.422416 -0.215193 0.422416 -0.199253 0.422416 0H3.57061L3.80174 -1.42665H3.55467C3.53076 -1.26725 3.467 -0.868742 3.37136 -0.71731C3.32354 -0.653549 2.71781 -0.653549 2.59029 -0.653549H1.17161L2.24757 -1.6259Z' id='eq1-g1-50'/>
@@ -37,10 +36,9 @@ $ \pi $
 <use x='1.4176' xlink:href='#eq1-g1-50' y='4.12263'/>
 </g>
 </svg> here. Then a block formula which is a Pythagorean theorem in source but not in the output:</p><div class="m-math"><svg height='15.4964pt' version='1.1' viewBox='164.011 -12.3971 60.0231 12.3971' width='75.0289pt'>
-<title>LaTeX Math</title>
-<desc>
+<title>
 \[ a^2 + b^2 = c^2 \]
-</desc>
+</title>
 <defs>
 <path d='M7.53176 -8.09365C7.6274 -8.26102 7.6274 -8.28493 7.6274 -8.3208C7.6274 -8.40448 7.55567 -8.5599 7.38829 -8.5599C7.24483 -8.5599 7.20897 -8.48817 7.12528 -8.3208L1.75741 2.11606C1.66177 2.28344 1.66177 2.30735 1.66177 2.34321C1.66177 2.43885 1.74545 2.58232 1.90087 2.58232C2.04433 2.58232 2.0802 2.51059 2.16389 2.34321L7.53176 -8.09365Z' id='eq2-g0-54'/>
 <path d='M3.59851 -1.42267C3.53873 -1.21943 3.53873 -1.19552 3.37136 -0.968369C3.10834 -0.633624 2.58232 -0.119552 2.02042 -0.119552C1.53026 -0.119552 1.25529 -0.561893 1.25529 -1.26725C1.25529 -1.92478 1.6259 -3.26376 1.85305 -3.76588C2.25953 -4.60274 2.82142 -5.03313 3.28767 -5.03313C4.07671 -5.03313 4.23213 -4.0528 4.23213 -3.95716C4.23213 -3.94521 4.19626 -3.78979 4.18431 -3.76588L3.59851 -1.42267ZM4.36364 -4.48319C4.23213 -4.79402 3.90934 -5.27223 3.28767 -5.27223C1.93674 -5.27223 0.478207 -3.52677 0.478207 -1.75741C0.478207 -0.573848 1.17161 0.119552 1.98456 0.119552C2.64209 0.119552 3.20399 -0.394521 3.53873 -0.789041C3.65828 -0.0836862 4.22017 0.119552 4.57883 0.119552S5.22441 -0.0956413 5.4396 -0.526027C5.63088 -0.932503 5.79826 -1.66177 5.79826 -1.70959C5.79826 -1.76936 5.75044 -1.81719 5.6787 -1.81719C5.57111 -1.81719 5.55915 -1.75741 5.51133 -1.57808C5.332 -0.872727 5.10486 -0.119552 4.61469 -0.119552C4.268 -0.119552 4.24408 -0.430386 4.24408 -0.669489C4.24408 -0.944458 4.27995 -1.07597 4.38755 -1.54222C4.47123 -1.8411 4.53101 -2.10411 4.62665 -2.45081C5.06899 -4.24408 5.17659 -4.67447 5.17659 -4.7462C5.17659 -4.91357 5.04508 -5.04508 4.86575 -5.04508C4.48319 -5.04508 4.38755 -4.62665 4.36364 -4.48319Z' id='eq2-g1-97'/>
index 2ffc33c69de42eea3618d1b507ad3e3f4d49a68a..5cca1da516ddb87475b019c2968d65307439599b 100644 (file)
@@ -53,10 +53,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>
+<title>
 {formula}
-</desc>
+</title>
 """
 
 _unique_src = re.compile(r"""(?P<name> id|xlink:href)='(?P<ref>#?)(?P<id>g\d+-\d+|page\d+)'""")
index 8079649b5b1844bad7a0f191591ef9021643987e..035c39b3cf91caccc1cfaf94048d92f8841570a4 100644 (file)
         <h1>m.math</h1>
 <!-- content -->
 <p>Inline colored math <svg class="m-math m-primary" style="vertical-align: -0.0pt;" height='11.8434pt' version='1.1' viewBox='0 -9.47474 10.3791 9.47474' width='12.9739pt'>
-<title>LaTeX Math</title>
-<desc>
+<title>
 a^2
-</desc>
+</title>
 <defs>
 <path d='M3.59851 -1.42267C3.53873 -1.21943 3.53873 -1.19552 3.37136 -0.968369C3.10834 -0.633624 2.58232 -0.119552 2.02042 -0.119552C1.53026 -0.119552 1.25529 -0.561893 1.25529 -1.26725C1.25529 -1.92478 1.6259 -3.26376 1.85305 -3.76588C2.25953 -4.60274 2.82142 -5.03313 3.28767 -5.03313C4.07671 -5.03313 4.23213 -4.0528 4.23213 -3.95716C4.23213 -3.94521 4.19626 -3.78979 4.18431 -3.76588L3.59851 -1.42267ZM4.36364 -4.48319C4.23213 -4.79402 3.90934 -5.27223 3.28767 -5.27223C1.93674 -5.27223 0.478207 -3.52677 0.478207 -1.75741C0.478207 -0.573848 1.17161 0.119552 1.98456 0.119552C2.64209 0.119552 3.20399 -0.394521 3.53873 -0.789041C3.65828 -0.0836862 4.22017 0.119552 4.57883 0.119552S5.22441 -0.0956413 5.4396 -0.526027C5.63088 -0.932503 5.79826 -1.66177 5.79826 -1.70959C5.79826 -1.76936 5.75044 -1.81719 5.6787 -1.81719C5.57111 -1.81719 5.55915 -1.75741 5.51133 -1.57808C5.332 -0.872727 5.10486 -0.119552 4.61469 -0.119552C4.268 -0.119552 4.24408 -0.430386 4.24408 -0.669489C4.24408 -0.944458 4.27995 -1.07597 4.38755 -1.54222C4.47123 -1.8411 4.53101 -2.10411 4.62665 -2.45081C5.06899 -4.24408 5.17659 -4.67447 5.17659 -4.7462C5.17659 -4.91357 5.04508 -5.04508 4.86575 -5.04508C4.48319 -5.04508 4.38755 -4.62665 4.36364 -4.48319Z' id='eq1-g0-97'/>
 <path d='M2.24757 -1.6259C2.37509 -1.74545 2.70984 -2.00847 2.83736 -2.12005C3.33151 -2.57435 3.80174 -3.0127 3.80174 -3.73798C3.80174 -4.68643 3.00473 -5.30012 2.00847 -5.30012C1.05205 -5.30012 0.422416 -4.57484 0.422416 -3.8655C0.422416 -3.47497 0.73325 -3.41918 0.844832 -3.41918C1.0122 -3.41918 1.25928 -3.53873 1.25928 -3.84159C1.25928 -4.25604 0.860772 -4.25604 0.765131 -4.25604C0.996264 -4.83786 1.53026 -5.03711 1.9208 -5.03711C2.66202 -5.03711 3.04458 -4.40747 3.04458 -3.73798C3.04458 -2.90909 2.46276 -2.30336 1.52229 -1.33898L0.518057 -0.302864C0.422416 -0.215193 0.422416 -0.199253 0.422416 0H3.57061L3.80174 -1.42665H3.55467C3.53076 -1.26725 3.467 -0.868742 3.37136 -0.71731C3.32354 -0.653549 2.71781 -0.653549 2.59029 -0.653549H1.17161L2.24757 -1.6259Z' id='eq1-g1-50'/>
@@ -39,10 +38,9 @@ a^2
 </svg> and colored math block:</p>
 <div class="m-success m-math">
 <svg height='13.7321pt' version='1.1' viewBox='164.011 -10.9857 60.0231 10.9857' width='75.0289pt'>
-<title>LaTeX Math</title>
-<desc>
+<title>
 a^2 + b^2 = c^2
-</desc>
+</title>
 <defs>
 <path d='M3.59851 -1.42267C3.53873 -1.21943 3.53873 -1.19552 3.37136 -0.968369C3.10834 -0.633624 2.58232 -0.119552 2.02042 -0.119552C1.53026 -0.119552 1.25529 -0.561893 1.25529 -1.26725C1.25529 -1.92478 1.6259 -3.26376 1.85305 -3.76588C2.25953 -4.60274 2.82142 -5.03313 3.28767 -5.03313C4.07671 -5.03313 4.23213 -4.0528 4.23213 -3.95716C4.23213 -3.94521 4.19626 -3.78979 4.18431 -3.76588L3.59851 -1.42267ZM4.36364 -4.48319C4.23213 -4.79402 3.90934 -5.27223 3.28767 -5.27223C1.93674 -5.27223 0.478207 -3.52677 0.478207 -1.75741C0.478207 -0.573848 1.17161 0.119552 1.98456 0.119552C2.64209 0.119552 3.20399 -0.394521 3.53873 -0.789041C3.65828 -0.0836862 4.22017 0.119552 4.57883 0.119552S5.22441 -0.0956413 5.4396 -0.526027C5.63088 -0.932503 5.79826 -1.66177 5.79826 -1.70959C5.79826 -1.76936 5.75044 -1.81719 5.6787 -1.81719C5.57111 -1.81719 5.55915 -1.75741 5.51133 -1.57808C5.332 -0.872727 5.10486 -0.119552 4.61469 -0.119552C4.268 -0.119552 4.24408 -0.430386 4.24408 -0.669489C4.24408 -0.944458 4.27995 -1.07597 4.38755 -1.54222C4.47123 -1.8411 4.53101 -2.10411 4.62665 -2.45081C5.06899 -4.24408 5.17659 -4.67447 5.17659 -4.7462C5.17659 -4.91357 5.04508 -5.04508 4.86575 -5.04508C4.48319 -5.04508 4.38755 -4.62665 4.36364 -4.48319Z' id='eq2-g0-97'/>
 <path d='M2.76164 -7.99801C2.7736 -8.04583 2.79751 -8.11756 2.79751 -8.17733C2.79751 -8.29689 2.67796 -8.29689 2.65405 -8.29689C2.64209 -8.29689 2.21171 -8.26102 1.99651 -8.23711C1.79328 -8.22516 1.61395 -8.20125 1.39875 -8.18929C1.11183 -8.16538 1.02814 -8.15342 1.02814 -7.93823C1.02814 -7.81868 1.1477 -7.81868 1.26725 -7.81868C1.87696 -7.81868 1.87696 -7.71108 1.87696 -7.59153C1.87696 -7.50785 1.78132 -7.16115 1.7335 -6.94595L1.44658 -5.79826C1.32702 -5.32005 0.645579 -2.60623 0.597758 -2.39103C0.537983 -2.09215 0.537983 -1.88892 0.537983 -1.7335C0.537983 -0.514072 1.21943 0.119552 1.99651 0.119552C3.38331 0.119552 4.81793 -1.66177 4.81793 -3.39527C4.81793 -4.49514 4.19626 -5.27223 3.29963 -5.27223C2.67796 -5.27223 2.11606 -4.75816 1.88892 -4.51905L2.76164 -7.99801ZM2.00847 -0.119552C1.6259 -0.119552 1.20747 -0.406476 1.20747 -1.33898C1.20747 -1.7335 1.24334 -1.96065 1.45853 -2.79751C1.4944 -2.95293 1.68568 -3.71806 1.7335 -3.87347C1.75741 -3.96912 2.46276 -5.03313 3.27572 -5.03313C3.80174 -5.03313 4.04085 -4.5071 4.04085 -3.88543C4.04085 -3.31158 3.7061 -1.96065 3.40722 -1.33898C3.10834 -0.6934 2.55841 -0.119552 2.00847 -0.119552Z' id='eq2-g0-98'/>
@@ -64,10 +62,9 @@ a^2 + b^2 = c^2
 </svg></div>
 <p>Properly align <em>huge</em> formulas vertically on a line:
 <svg class="m-math" style="vertical-align: -7.7pt;" height='21.2063pt' version='1.1' viewBox='0 -10.8498 46.8022 16.965' width='58.5028pt'>
-<title>LaTeX Math</title>
-<desc>
+<title>
 \hat q^{-1} = \frac{\hat q^*}{|\hat q|^2}
-</desc>
+</title>
 <defs>
 <path d='M2.77958 -0.842839C2.93499 -0.735243 2.94695 -0.735243 2.98879 -0.735243C3.09041 -0.735243 3.18605 -0.824907 3.18605 -0.944458S3.09639 -1.09988 3.04857 -1.12379C2.74371 -1.24932 2.43885 -1.37484 2.12802 -1.48842C2.73773 -1.73948 2.90511 -1.79925 3.0127 -1.84707C3.10237 -1.88892 3.18605 -1.9188 3.18605 -2.03836S3.09041 -2.24757 2.98879 -2.24757C2.94097 -2.24757 2.90511 -2.22366 2.85729 -2.19377L2.00847 -1.65579C2.01445 -1.73948 2.03836 -1.94869 2.04433 -2.02042C2.05629 -2.13998 2.10411 -2.49863 2.10411 -2.60025S2.01445 -2.77958 1.90685 -2.77958C1.80523 -2.77958 1.70959 -2.70187 1.70959 -2.60025C1.70959 -2.58829 1.76339 -2.05031 1.76936 -2.0264C1.77534 -1.96065 1.79925 -1.7335 1.80523 -1.65579L0.956413 -2.19377C0.908593 -2.22366 0.872727 -2.24757 0.824907 -2.24757C0.723288 -2.24757 0.627646 -2.15791 0.627646 -2.03836S0.71731 -1.88294 0.765131 -1.85903C1.06999 -1.7335 1.37484 -1.60797 1.68568 -1.4944C1.07597 -1.24334 0.908593 -1.18356 0.800996 -1.13574C0.711333 -1.0939 0.627646 -1.06401 0.627646 -0.944458S0.723288 -0.735243 0.824907 -0.735243C0.872727 -0.735243 0.974346 -0.800996 1.04608 -0.848817C1.12976 -0.896638 1.333 -1.02814 1.41071 -1.08194C1.60797 -1.20747 1.6797 -1.25529 1.80523 -1.32702C1.79925 -1.24334 1.77534 -1.03412 1.76936 -0.962391L1.70959 -0.382565C1.70959 -0.280946 1.80523 -0.203238 1.90685 -0.203238C2.01445 -0.203238 2.10411 -0.280946 2.10411 -0.382565C2.10411 -0.388543 2.05031 -0.926526 2.04433 -0.956413C2.03836 -1.02217 2.01445 -1.24932 2.00847 -1.32702L2.77958 -0.842839Z' id='eq3-g0-3'/>
 <path d='M3.79377 -3.28369C3.80174 -3.31557 3.80971 -3.36339 3.80971 -3.40324C3.80971 -3.45106 3.77783 -3.51482 3.7061 -3.51482C3.61046 -3.51482 3.28369 -3.20399 3.15616 -2.98082C3.06849 -3.15616 2.82939 -3.51482 2.33524 -3.51482C1.3868 -3.51482 0.342715 -2.40697 0.342715 -1.2274C0.342715 -0.398506 0.876712 0.0797011 1.49041 0.0797011C1.88892 0.0797011 2.21569 -0.151432 2.45479 -0.358655C2.44682 -0.334745 2.19975 0.669489 2.16787 0.804981C2.04832 1.26725 2.04832 1.27522 1.5462 1.28319C1.45056 1.28319 1.34695 1.28319 1.34695 1.43462C1.34695 1.48244 1.3868 1.5462 1.4665 1.5462C1.57011 1.5462 1.75342 1.53026 1.85704 1.52229H2.27945C2.91706 1.52229 3.06052 1.5462 3.12428 1.5462C3.15616 1.5462 3.27572 1.5462 3.27572 1.39477C3.27572 1.28319 3.16413 1.28319 3.06849 1.28319C2.68593 1.28319 2.68593 1.23537 2.68593 1.16364C2.68593 1.15567 2.68593 1.11582 2.71781 0.996264L3.79377 -3.28369ZM2.6142 -0.988294C2.58232 -0.868742 2.58232 -0.844832 2.44682 -0.6934C2.03238 -0.207223 1.68169 -0.143462 1.51432 -0.143462C1.1477 -0.143462 0.964384 -0.478207 0.964384 -0.892653C0.964384 -1.26725 1.17958 -2.12005 1.35492 -2.47073C1.58605 -2.95691 1.97659 -3.29166 2.34321 -3.29166C2.87721 -3.29166 3.0127 -2.66999 3.0127 -2.6142C3.0127 -2.58232 2.99676 -2.52653 2.98879 -2.48667L2.6142 -0.988294Z' id='eq3-g2-113'/>
@@ -98,10 +95,9 @@ a^2 + b^2 = c^2
 </g>
 </svg>
 and make sure there's enough space for all the complex <svg class="m-math" style="vertical-align: -0.0pt;" height='10.2117pt' version='1.1' viewBox='0 -8.16937 12.6773 8.16937' width='15.8467pt'>
-<title>LaTeX Math</title>
-<desc>
+<title>
 W
-</desc>
+</title>
 <defs>
 <path d='M10.7955 -6.83836C11.0705 -7.30461 11.3335 -7.74695 12.0508 -7.81868C12.1584 -7.83064 12.266 -7.84259 12.266 -8.03387C12.266 -8.16538 12.1584 -8.16538 12.1225 -8.16538C12.0986 -8.16538 12.0149 -8.14147 11.2259 -8.14147C10.8672 -8.14147 10.4966 -8.16538 10.1499 -8.16538C10.0782 -8.16538 9.93474 -8.16538 9.93474 -7.93823C9.93474 -7.83064 10.0304 -7.81868 10.1021 -7.81868C10.3412 -7.80672 10.7238 -7.73499 10.7238 -7.36438C10.7238 -7.20897 10.676 -7.12528 10.5564 -6.92204L7.29265 -1.20747L6.86227 -7.43611C6.86227 -7.57958 6.99377 -7.80672 7.66326 -7.81868C7.81868 -7.81868 7.93823 -7.81868 7.93823 -8.04583C7.93823 -8.16538 7.81868 -8.16538 7.7589 -8.16538C7.34047 -8.16538 6.89813 -8.14147 6.46775 -8.14147H5.84608C5.66675 -8.14147 5.45156 -8.16538 5.27223 -8.16538C5.2005 -8.16538 5.05704 -8.16538 5.05704 -7.93823C5.05704 -7.81868 5.14072 -7.81868 5.34396 -7.81868C5.8939 -7.81868 5.8939 -7.80672 5.94172 -7.07746L5.97758 -6.64707L2.8812 -1.20747L2.43885 -7.37634C2.43885 -7.50785 2.43885 -7.80672 3.25181 -7.81868C3.38331 -7.81868 3.51482 -7.81868 3.51482 -8.03387C3.51482 -8.16538 3.40722 -8.16538 3.33549 -8.16538C2.91706 -8.16538 2.47472 -8.14147 2.04433 -8.14147H1.42267C1.24334 -8.14147 1.02814 -8.16538 0.848817 -8.16538C0.777086 -8.16538 0.633624 -8.16538 0.633624 -7.93823C0.633624 -7.81868 0.729265 -7.81868 0.896638 -7.81868C1.45853 -7.81868 1.47049 -7.74695 1.4944 -7.36438L2.02042 -0.0239103C2.03238 0.179328 2.04433 0.251059 2.1878 0.251059C2.30735 0.251059 2.33126 0.203238 2.43885 0.0239103L6.00149 -6.20473L6.44384 -0.0239103C6.45579 0.179328 6.46775 0.251059 6.61121 0.251059C6.73076 0.251059 6.76663 0.191283 6.86227 0.0239103L10.7955 -6.83836Z' id='eq4-g0-87'/>
 </defs>
@@ -110,10 +106,9 @@ W
 </g>
 </svg> things between
 the lines <svg class="m-math" style="vertical-align: -6.7pt;" height='18.2261pt' version='1.1' viewBox='0 -9.24319 67.6716 14.5809' width='84.5895pt'>
-<title>LaTeX Math</title>
-<desc>
+<title>
 W = \sum_{i=0}^{n} \frac{w_i}{h_i}
-</desc>
+</title>
 <defs>
 <path d='M5.03313 6.38406L0.789041 11.6324C0.6934 11.7519 0.681445 11.7758 0.681445 11.8237C0.681445 11.9552 0.789041 11.9552 1.00423 11.9552H10.9151L11.9432 8.97833H11.6443C11.3455 9.87497 10.5445 10.6042 9.52827 10.9509C9.33699 11.0107 8.51208 11.2976 6.75467 11.2976H1.67372L5.82217 6.16887C5.90585 6.06127 5.92976 6.0254 5.92976 5.97758S5.91781 5.91781 5.84608 5.81021L1.96065 0.478207H6.69489C8.05778 0.478207 10.8075 0.561893 11.6443 2.79751H11.9432L10.9151 0H1.00423C0.681445 0 0.669489 0.0119552 0.669489 0.382565L5.03313 6.38406Z' id='eq5-g0-80'/>
 <path d='M8.06974 -3.87347C8.23711 -3.87347 8.4523 -3.87347 8.4523 -4.08867C8.4523 -4.31582 8.24907 -4.31582 8.06974 -4.31582H1.02814C0.860772 -4.31582 0.645579 -4.31582 0.645579 -4.10062C0.645579 -3.87347 0.848817 -3.87347 1.02814 -3.87347H8.06974ZM8.06974 -1.64981C8.23711 -1.64981 8.4523 -1.64981 8.4523 -1.86501C8.4523 -2.09215 8.24907 -2.09215 8.06974 -2.09215H1.02814C0.860772 -2.09215 0.645579 -2.09215 0.645579 -1.87696C0.645579 -1.64981 0.848817 -1.64981 1.02814 -1.64981H8.06974Z' id='eq5-g5-61'/>
@@ -142,10 +137,9 @@ W = \sum_{i=0}^{n} \frac{w_i}{h_i}
 </g>
 </svg> because
 <svg class="m-math" style="vertical-align: -4.4pt;" height='15.9127pt' version='1.1' viewBox='0 -9.24319 63.4496 12.7302' width='79.312pt'>
-<title>LaTeX Math</title>
-<desc>
+<title>
 Y = \sum_{i=0}^{n} B
-</desc>
+</title>
 <defs>
 <path d='M5.03313 6.38406L0.789041 11.6324C0.6934 11.7519 0.681445 11.7758 0.681445 11.8237C0.681445 11.9552 0.789041 11.9552 1.00423 11.9552H10.9151L11.9432 8.97833H11.6443C11.3455 9.87497 10.5445 10.6042 9.52827 10.9509C9.33699 11.0107 8.51208 11.2976 6.75467 11.2976H1.67372L5.82217 6.16887C5.90585 6.06127 5.92976 6.0254 5.92976 5.97758S5.91781 5.91781 5.84608 5.81021L1.96065 0.478207H6.69489C8.05778 0.478207 10.8075 0.561893 11.6443 2.79751H11.9432L10.9151 0H1.00423C0.681445 0 0.669489 0.0119552 0.669489 0.382565L5.03313 6.38406Z' id='eq6-g0-80'/>
 <path d='M4.37559 -7.35243C4.48319 -7.79477 4.53101 -7.81868 4.99726 -7.81868H6.55143C7.90237 -7.81868 7.90237 -6.67098 7.90237 -6.56339C7.90237 -5.59502 6.934 -4.36364 5.35592 -4.36364H3.63437L4.37559 -7.35243ZM6.39601 -4.268C7.69913 -4.5071 8.88269 -5.41569 8.88269 -6.51557C8.88269 -7.44807 8.05778 -8.16538 6.70685 -8.16538H2.86924C2.64209 -8.16538 2.5345 -8.16538 2.5345 -7.93823C2.5345 -7.81868 2.64209 -7.81868 2.82142 -7.81868C3.55068 -7.81868 3.55068 -7.72304 3.55068 -7.59153C3.55068 -7.56762 3.55068 -7.49589 3.50286 -7.31656L1.88892 -0.884682C1.78132 -0.466252 1.75741 -0.3467 0.920548 -0.3467C0.6934 -0.3467 0.573848 -0.3467 0.573848 -0.131507C0.573848 0 0.645579 0 0.884682 0H4.98531C6.81445 0 8.22516 -1.3868 8.22516 -2.59427C8.22516 -3.5746 7.36438 -4.17235 6.39601 -4.268ZM4.69838 -0.3467H3.08443C2.91706 -0.3467 2.89315 -0.3467 2.82142 -0.358655C2.68991 -0.37061 2.67796 -0.394521 2.67796 -0.490162C2.67796 -0.573848 2.70187 -0.645579 2.72578 -0.753176L3.56264 -4.12453H5.81021C7.22092 -4.12453 7.22092 -2.80946 7.22092 -2.71382C7.22092 -1.56613 6.18082 -0.3467 4.69838 -0.3467Z' id='eq6-g2-66'/>
@@ -168,10 +162,9 @@ Y = \sum_{i=0}^{n} B
 </g>
 </svg></p>
 <p>The <code>\cfrac</code> thing doesn't align well: <svg class="m-math" style="vertical-align: -6.3pt;" height='30.1719pt' version='1.1' viewBox='0 -14.1436 70.1821 24.1375' width='87.7276pt'>
-<title>LaTeX Math</title>
-<desc>
+<title>
 W = \sum_{i=0}^{n} \cfrac{w_i}{h_i}
-</desc>
+</title>
 <defs>
 <path d='M5.03313 6.38406L0.789041 11.6324C0.6934 11.7519 0.681445 11.7758 0.681445 11.8237C0.681445 11.9552 0.789041 11.9552 1.00423 11.9552H10.9151L11.9432 8.97833H11.6443C11.3455 9.87497 10.5445 10.6042 9.52827 10.9509C9.33699 11.0107 8.51208 11.2976 6.75467 11.2976H1.67372L5.82217 6.16887C5.90585 6.06127 5.92976 6.0254 5.92976 5.97758S5.91781 5.91781 5.84608 5.81021L1.96065 0.478207H6.69489C8.05778 0.478207 10.8075 0.561893 11.6443 2.79751H11.9432L10.9151 0H1.00423C0.681445 0 0.669489 0.0119552 0.669489 0.382565L5.03313 6.38406Z' id='eq7-g0-80'/>
 <path d='M10.7955 -6.83836C11.0705 -7.30461 11.3335 -7.74695 12.0508 -7.81868C12.1584 -7.83064 12.266 -7.84259 12.266 -8.03387C12.266 -8.16538 12.1584 -8.16538 12.1225 -8.16538C12.0986 -8.16538 12.0149 -8.14147 11.2259 -8.14147C10.8672 -8.14147 10.4966 -8.16538 10.1499 -8.16538C10.0782 -8.16538 9.93474 -8.16538 9.93474 -7.93823C9.93474 -7.83064 10.0304 -7.81868 10.1021 -7.81868C10.3412 -7.80672 10.7238 -7.73499 10.7238 -7.36438C10.7238 -7.20897 10.676 -7.12528 10.5564 -6.92204L7.29265 -1.20747L6.86227 -7.43611C6.86227 -7.57958 6.99377 -7.80672 7.66326 -7.81868C7.81868 -7.81868 7.93823 -7.81868 7.93823 -8.04583C7.93823 -8.16538 7.81868 -8.16538 7.7589 -8.16538C7.34047 -8.16538 6.89813 -8.14147 6.46775 -8.14147H5.84608C5.66675 -8.14147 5.45156 -8.16538 5.27223 -8.16538C5.2005 -8.16538 5.05704 -8.16538 5.05704 -7.93823C5.05704 -7.81868 5.14072 -7.81868 5.34396 -7.81868C5.8939 -7.81868 5.8939 -7.80672 5.94172 -7.07746L5.97758 -6.64707L2.8812 -1.20747L2.43885 -7.37634C2.43885 -7.50785 2.43885 -7.80672 3.25181 -7.81868C3.38331 -7.81868 3.51482 -7.81868 3.51482 -8.03387C3.51482 -8.16538 3.40722 -8.16538 3.33549 -8.16538C2.91706 -8.16538 2.47472 -8.14147 2.04433 -8.14147H1.42267C1.24334 -8.14147 1.02814 -8.16538 0.848817 -8.16538C0.777086 -8.16538 0.633624 -8.16538 0.633624 -7.93823C0.633624 -7.81868 0.729265 -7.81868 0.896638 -7.81868C1.45853 -7.81868 1.47049 -7.74695 1.4944 -7.36438L2.02042 -0.0239103C2.03238 0.179328 2.04433 0.251059 2.1878 0.251059C2.30735 0.251059 2.33126 0.203238 2.43885 0.0239103L6.00149 -6.20473L6.44384 -0.0239103C6.45579 0.179328 6.46775 0.251059 6.61121 0.251059C6.73076 0.251059 6.76663 0.191283 6.86227 0.0239103L10.7955 -6.83836Z' id='eq7-g2-87'/>
index 542d38b18b3270baf325549353247a645821d94c..3a729836ae054ea9bf1b580928c2d94f5cf3db39 100644 (file)
 <!-- content -->
 <p>In order to actually test use of the cache, I need to cheat a bit. Inline
 formula which is pi in the source but <svg class="m-math" style="vertical-align: -5.2pt;" height='15.3267pt' version='1.1' viewBox='1.19551 -8.1387 4.67835 12.2613' width='5.84794pt'>
-<title>LaTeX Math</title>
-<desc>
+<title>
 \pi
-</desc>
+</title>
 <defs>
 <path d='M2.50262 -2.90909H3.92927C4.05679 -2.90909 4.14446 -2.90909 4.22416 -2.97285C4.3198 -3.06052 4.34371 -3.16413 4.34371 -3.21196C4.34371 -3.43512 4.14446 -3.43512 4.00897 -3.43512H1.60199C1.43462 -3.43512 1.13176 -3.43512 0.74122 -3.05255C0.454296 -2.76563 0.231133 -2.399 0.231133 -2.34321C0.231133 -2.27148 0.286924 -2.24757 0.350685 -2.24757C0.430386 -2.24757 0.446326 -2.27148 0.494147 -2.33524C0.884682 -2.90909 1.35492 -2.90909 1.53823 -2.90909H2.22366L1.53823 -0.70137C1.48244 -0.518057 1.37883 -0.191283 1.37883 -0.151432C1.37883 0.0318804 1.5462 0.0956413 1.64184 0.0956413C1.93674 0.0956413 1.98456 -0.183313 2.00847 -0.302864L2.50262 -2.90909Z' id='eq1-g0-28'/>
 <path d='M2.24757 -1.6259C2.37509 -1.74545 2.70984 -2.00847 2.83736 -2.12005C3.33151 -2.57435 3.80174 -3.0127 3.80174 -3.73798C3.80174 -4.68643 3.00473 -5.30012 2.00847 -5.30012C1.05205 -5.30012 0.422416 -4.57484 0.422416 -3.8655C0.422416 -3.47497 0.73325 -3.41918 0.844832 -3.41918C1.0122 -3.41918 1.25928 -3.53873 1.25928 -3.84159C1.25928 -4.25604 0.860772 -4.25604 0.765131 -4.25604C0.996264 -4.83786 1.53026 -5.03711 1.9208 -5.03711C2.66202 -5.03711 3.04458 -4.40747 3.04458 -3.73798C3.04458 -2.90909 2.46276 -2.30336 1.52229 -1.33898L0.518057 -0.302864C0.422416 -0.215193 0.422416 -0.199253 0.422416 0H3.57061L3.80174 -1.42665H3.55467C3.53076 -1.26725 3.467 -0.868742 3.37136 -0.71731C3.32354 -0.653549 2.71781 -0.653549 2.59029 -0.653549H1.17161L2.24757 -1.6259Z' id='eq1-g1-50'/>
@@ -42,10 +41,9 @@ formula which is pi in the source but <svg class="m-math" style="vertical-align:
 formula which is a Pythagorean theorem in source but not in the output:</p>
 <div class="m-math">
 <svg height='15.4964pt' version='1.1' viewBox='164.011 -12.3971 60.0231 12.3971' width='75.0289pt'>
-<title>LaTeX Math</title>
-<desc>
+<title>
 a^2 + b^2 = c^2
-</desc>
+</title>
 <defs>
 <path d='M7.53176 -8.09365C7.6274 -8.26102 7.6274 -8.28493 7.6274 -8.3208C7.6274 -8.40448 7.55567 -8.5599 7.38829 -8.5599C7.24483 -8.5599 7.20897 -8.48817 7.12528 -8.3208L1.75741 2.11606C1.66177 2.28344 1.66177 2.30735 1.66177 2.34321C1.66177 2.43885 1.74545 2.58232 1.90087 2.58232C2.04433 2.58232 2.0802 2.51059 2.16389 2.34321L7.53176 -8.09365Z' id='eq2-g0-54'/>
 <path d='M3.59851 -1.42267C3.53873 -1.21943 3.53873 -1.19552 3.37136 -0.968369C3.10834 -0.633624 2.58232 -0.119552 2.02042 -0.119552C1.53026 -0.119552 1.25529 -0.561893 1.25529 -1.26725C1.25529 -1.92478 1.6259 -3.26376 1.85305 -3.76588C2.25953 -4.60274 2.82142 -5.03313 3.28767 -5.03313C4.07671 -5.03313 4.23213 -4.0528 4.23213 -3.95716C4.23213 -3.94521 4.19626 -3.78979 4.18431 -3.76588L3.59851 -1.42267ZM4.36364 -4.48319C4.23213 -4.79402 3.90934 -5.27223 3.28767 -5.27223C1.93674 -5.27223 0.478207 -3.52677 0.478207 -1.75741C0.478207 -0.573848 1.17161 0.119552 1.98456 0.119552C2.64209 0.119552 3.20399 -0.394521 3.53873 -0.789041C3.65828 -0.0836862 4.22017 0.119552 4.57883 0.119552S5.22441 -0.0956413 5.4396 -0.526027C5.63088 -0.932503 5.79826 -1.66177 5.79826 -1.70959C5.79826 -1.76936 5.75044 -1.81719 5.6787 -1.81719C5.57111 -1.81719 5.55915 -1.75741 5.51133 -1.57808C5.332 -0.872727 5.10486 -0.119552 4.61469 -0.119552C4.268 -0.119552 4.24408 -0.430386 4.24408 -0.669489C4.24408 -0.944458 4.27995 -1.07597 4.38755 -1.54222C4.47123 -1.8411 4.53101 -2.10411 4.62665 -2.45081C5.06899 -4.24408 5.17659 -4.67447 5.17659 -4.7462C5.17659 -4.91357 5.04508 -5.04508 4.86575 -5.04508C4.48319 -5.04508 4.38755 -4.62665 4.36364 -4.48319Z' id='eq2-g1-97'/>