If you want to add MathJax to Moin

I got the content below from moinmo.in/zelhar which was for version 1.96.

Set Up MathJax to Work

Just edit <moin>/wikiconfig.py and add:

# Add your configuration items here.
html_head = u""" 
        <script type="text/x-mathjax-config"> 
                 MathJax.Hub.Config({ 
                    extensions: ["tex2jax.js", "asciimath2jax.js"], 
                    jax: ["input/TeX", "output/HTML-CSS"], 
                    tex2jax: { 
                      inlineMath: [ ['$','$'] ], 
                      displayMath: [ ['$$','$$'] ], 
                      processEscapes: true 
                    }, 
                    asciimath2jax: {
                      delimiters: [ ['@@', '@@'], ]
                    },
                    "HTML-CSS": { availableFonts: ["TeX"] },
                    styles: { ".MathJax": { color: "blue" } }
                  }); 
        </script> 
        <script type="text/javascript" 
      
src="https://d3eoax9i5htok0.cloudfront.net/mathjax/latest/MathJax.js?config=
TeX-MML-AM_HTMLorMML-full">
        </script>"""

MathJax (last edited 2019-01-03 15:46:58 by scot)