pandoc/test/command/4877.md
John MacFarlane a211edc819 HTML reader: parse <script type="math/tex tags as math.
These are used by MathJax.

Closes #4877.
2018-09-07 09:41:17 -07:00

13 lines
282 B
Markdown

```
% pandoc -f html -t native
My <script type="math/tex">\mathcal{D}</script>
^D
[Plain [Str "My",Space,Math InlineMath "\\mathcal{D}"]]
```
```
% pandoc -f html -t native
<script type="math/tex; mode=display">\mathcal{D}</script>
^D
[Plain [Math DisplayMath "\\mathcal{D}"]]
```