##// END OF EJS Templates
Backport jupyter/notebook#89...
Backport jupyter/notebook#89 fix highlighting of non-python kernels. mock the cm_config property also when set, unlike in non backported version of this PR

File last commit:

r17751:170baf30
r21377:45aa5dda
Show More
mathjax.tpl
22 lines | 856 B | application/vnd.groove-tool-template | SmartyLexer
damianavila
Added a math jinja macro containing the scripts to load mathjax.
r14150 {%- macro mathjax() -%}
MinRK
remove unnecessary onload hack from mathjax macro
r15846 <!-- Load mathjax -->
MinRK
update mathjax CDN url in nbconvert template
r17751 <script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"></script>
damianavila
Added a math jinja macro containing the scripts to load mathjax.
r14150 <!-- MathJax configuration -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
damianavila
Fixed mathjax macro to be synced with the mathjax config in the live notebook.
r14199 tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true,
processEnvironments: true
},
// Center justify equations in code and markdown cells. Elsewhere
// we use CSS to left justify single line equations in code cells.
displayAlign: 'center',
"HTML-CSS": {
styles: {'.MathJax_Display': {"margin": 0}},
linebreaks: { automatic: true }
}
damianavila
Added a math jinja macro containing the scripts to load mathjax.
r14150 });
</script>
<!-- End of mathjax configuration -->
{%- endmacro %}