ソースを参照

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

Willem Rein Oudshoorn 12 年 前
コミット
94420c9d4e
共有1 個のファイルを変更した3 個の追加3 個の削除を含む
  1. 3 3
      plugins/mathjax.lisp

+ 3 - 3
plugins/mathjax.lisp

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