summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain McGinniss <iainmcgin@gmail.com>2012-10-23 15:22:51 +0100
committerIain McGinniss <iainmcgin@gmail.com>2012-10-23 15:22:51 +0100
commiteb3e02ad36ec05769bb1d98302627bd3ca871864 (patch)
tree507673cad0207038bf149bd2da6b7ee017088863
parenta805b0461be6cff86153cf82f1ec298bacba00a8 (diff)
downloadscala-eb3e02ad36ec05769bb1d98302627bd3ca871864.tar.gz
scala-eb3e02ad36ec05769bb1d98302627bd3ca871864.tar.bz2
scala-eb3e02ad36ec05769bb1d98302627bd3ca871864.zip
MathJAX configuration for inline math inside code blocks
-rw-r--r--resources/scala-ref-template.html59
1 files changed, 9 insertions, 0 deletions
diff --git a/resources/scala-ref-template.html5 b/resources/scala-ref-template.html5
index 33d6b26ef8..424170d3d8 100644
--- a/resources/scala-ref-template.html5
+++ b/resources/scala-ref-template.html5
@@ -26,6 +26,15 @@ $endif$
$for(css)$
<link rel="stylesheet" href="$css$">
$endfor$
+ <script type="text/x-mathjax-config">
+ MathJax.Hub.Config({
+ tex2jax: {
+ skipTags: ["script", "noscript", "style", "textarea"],
+ inlineMath: [ ["$$", "$$"], ["\\(", "\\)"] ],
+ processEscapes: true
+ }
+ });
+ </script>
$if(math)$
$math$
$endif$