title |
---|
Testing svg in mathjax |
Run with:
pandoc -s --mathjax test-die.md -o test-die.html
<span class="math display">\[
\newcommand{\fifthdie}{\mmlToken{mglyph}[src='data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" height="42px" width="42px"><rect stroke="black" fill="none" x="1px" y="1px" stroke-width="2px" rx="5px" width="40px" height="40px"></rect> <circle stroke="black" fill="black" cy="30px" cx="30px" r="5px"></circle> <circle stroke="black" fill="black" cy="30px" cx="10px" r="5px"></circle> <circle stroke="black" fill="black" cy="20px" cx="20px" r="5px"></circle> <circle stroke="black" fill="black" cy="10px" cx="30px" r="5px"></circle> <circle stroke="black" fill="black" cy="10px" cx="10px" r="5px"></circle> </svg>' width="42px" height="42px" valign="0px" alt="5 die"]{}}
\newcommand{\randie}{\mmlToken{mglyph}[src='data:image/svg+xml, <svg width="42" height="42" viewBox="-1 -1 44 44" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <circle fill="gold" stroke="black" cx="11.4" cy="11.4" r="5" /> <circle fill="gold" stroke="black" cx="11.4" cy="30.6" r="5" /> <circle fill="gold" stroke="black" cx="30.6" cy="11.4" r="5" /> <circle fill="gold" stroke="black" cx="30.6" cy="30.6" r="5" /> <rect stroke-width="2" x="0" y="0" width="42" height="42" rx="5" ry="5" fill="none" stroke="black" /> </svg>' width="42px" height="42px" valign="0px" alt="die 4"]{}}\]
</span>