diff options
author | Iain McGinniss <iainmcgin@gmail.com> | 2012-10-23 15:22:51 +0100 |
---|---|---|
committer | Iain McGinniss <iainmcgin@gmail.com> | 2012-10-23 15:22:51 +0100 |
commit | eb3e02ad36ec05769bb1d98302627bd3ca871864 (patch) | |
tree | 507673cad0207038bf149bd2da6b7ee017088863 /resources | |
parent | a805b0461be6cff86153cf82f1ec298bacba00a8 (diff) | |
download | scala-eb3e02ad36ec05769bb1d98302627bd3ca871864.tar.gz scala-eb3e02ad36ec05769bb1d98302627bd3ca871864.tar.bz2 scala-eb3e02ad36ec05769bb1d98302627bd3ca871864.zip |
MathJAX configuration for inline math inside code blocks
Diffstat (limited to 'resources')
-rw-r--r-- | resources/scala-ref-template.html5 | 9 |
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$ |