Skip to content

Instantly share code, notes, and snippets.

@drautb
Created September 11, 2013 20:21
Show Gist options
  • Save drautb/6529252 to your computer and use it in GitHub Desktop.
Save drautb/6529252 to your computer and use it in GitHub Desktop.
Short JavaScript Snippet to set up a mardown file with Mathjax
<snippet>
<content><![CDATA[
<script type="text/x-mathjax-config">MathJax.Hub.Config({tex2jax: {inlineMath: [['\$','\$']]}});</script>
<script type="text/javascript"src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>amj</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html.markdown</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment