Skip to content
Browse files

MathJAX configuration for inline math inside code blocks

  • Loading branch information...
1 parent a805b04 commit eb3e02ad36ec05769bb1d98302627bd3ca871864 @iainmcgin iainmcgin committed Oct 23, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 resources/scala-ref-template.html5
View
9 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$

0 comments on commit eb3e02a

Please sign in to comment.
Something went wrong with that request. Please try again.