Tiny improvement, do not emit text/x-math-config script section if not needed

This commit is contained in:
Willem Rein Oudshoorn 2013-04-04 20:18:18 +02:00
parent 09d54e4863
commit 94420c9d4e

View file

@ -9,9 +9,9 @@
(in-package :coleslaw-mathjax)
(defvar *mathjax-header* "<script type=\"text/x-mathjax-config\">
MathJax.Hub.Config({~@[~A~]});
</script>
(defvar *mathjax-header* "~@[<script type=\"text/x-mathjax-config\">
MathJax.Hub.Config({~A});
</script>~]
<script type=\"text/javascript\" src=\"~A~@[?config=~A~]\"></script>")
(defun enable (&key force config (preset "TeX-AMS-MML_HTMLorMML")