charlesthomas / magpie

Git-backed Evernote replacement
MIT License
646 stars 50 forks source link

Consider Adding MathJax Support #55

Closed KDocProf closed 9 years ago

KDocProf commented 10 years ago

I often use TexMath style math expressions in my notes. So as an experiment I added the following to head section of base.html

 <script type="text/x-mathjax-config">
        MathJax.Hub.Config({
            tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
        });
    </script>
    <script type="text/javascript"
        src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
    </script>

It works very well for me and my math expressions no render beuatifully.