Support inline and display math.

$$2^2$$

$2^2$

\\(2^2\\)

[2^2]
This commit is contained in:
bootstraponline
2012-10-21 17:10:50 -06:00
parent f68bebe0f6
commit 5400b4bfdd
3 changed files with 9 additions and 3 deletions
@@ -20,7 +20,13 @@
<script type="text/javascript" src="{{base_url}}/javascript/editor/gollum.editor.js"></script>
{{#mathjax}}
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ TeX: { extensions: ["autoload-all.js"] }});
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ['\\(','\\)']],
displayMath: [ ['$$','$$'], ['\[','\]'] ],
processEscapes: true
},
TeX: { extensions: ["autoload-all.js"] }});
</script>
<script>(function(d,j){
j = d.createElement('script');