aboutsummaryrefslogtreecommitdiff
path: root/html-test/ref/Math.html
diff options
context:
space:
mode:
authorAlec Theriault <alec.theriault@gmail.com>2018-11-05 13:58:11 -0800
committerGitHub <noreply@github.com>2018-11-05 13:58:11 -0800
commit8a491e437f1c8379b66a420f8584c1761b45aa7e (patch)
treea608c0afd9f238376801e7fcf8588a2bac59f81c /html-test/ref/Math.html
parent0d9a81e20238a6b72f9f5c005f1f7e9cf05f6fb9 (diff)
Only run MathJax on entities with "mathjax" class (#960)
Correspondingly, we wrap all inline/diplay math in <span class="mathjax"> ... the math .... </span> This fixes #959.
Diffstat (limited to 'html-test/ref/Math.html')
-rw-r--r--html-test/ref/Math.html22
1 files changed, 16 insertions, 6 deletions
diff --git a/html-test/ref/Math.html b/html-test/ref/Math.html
index 71079bdd..bb3fbca0 100644
--- a/html-test/ref/Math.html
+++ b/html-test/ref/Math.html
@@ -7,7 +7,9 @@
/><link rel="stylesheet" type="text/css" href="#"
/><script src="haddock-bundle.min.js" async="async" type="text/javascript"
></script
- ><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"
+ ><script type="text/x-mathjax-config"
+ >MathJax.Hub.Config({ tex2jax: { processClass: &quot;mathjax&quot;, ignoreClass: &quot;.*&quot; } });</script
+ ><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"
></script
></head
><body
@@ -47,11 +49,15 @@
>normalDensity</code
></p
><p
- >\[
+ ><span class="mathjax"
+ >\[
\int_{-\infty}^{\infty} e^{-x^2/2} = \sqrt{2\pi}
- \]</p
+ \]</span
+ ></p
><p
- >\(\int_{-\infty}^{\infty} e^{-x^2/2} = \sqrt{2\pi}\)</p
+ ><span class="mathjax"
+ >\(\int_{-\infty}^{\infty} e^{-x^2/2} = \sqrt{2\pi}\)</span
+ ></p
></div
></div
><div id="synopsis"
@@ -85,8 +91,12 @@
>Math (inline) for <code
>normalDensity</code
>
- \(\int_{-\infty}^{\infty} e^{-x^2/2} = \sqrt{2\pi}\)
- \[\int_{-\infty}^{\infty} e^{-x^2/2} = \sqrt{2\pi}\]</p
+ <span class="mathjax"
+ >\(\int_{-\infty}^{\infty} e^{-x^2/2} = \sqrt{2\pi}\)</span
+ >
+ <span class="mathjax"
+ >\[\int_{-\infty}^{\infty} e^{-x^2/2} = \sqrt{2\pi}\]</span
+ ></p
></div
></div
></div