diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-09-06 17:05:04 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-09-07 09:41:17 -0700 |
commit | a211edc8192f2abc9787c1012a3cf3cb3f96952c (patch) | |
tree | f03a95f0038e10fe55ede2fcceb6889c76566f20 /test | |
parent | 6397aacdaed3f5ca3305a383b8ff6575f5d73e5d (diff) | |
download | pandoc-a211edc8192f2abc9787c1012a3cf3cb3f96952c.tar.gz |
HTML reader: parse `<script type="math/tex` tags as math.
These are used by MathJax.
Closes #4877.
Diffstat (limited to 'test')
-rw-r--r-- | test/command/4877.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/command/4877.md b/test/command/4877.md new file mode 100644 index 000000000..070687345 --- /dev/null +++ b/test/command/4877.md @@ -0,0 +1,13 @@ +``` +% 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}"]] +``` |