Skip to content

Commit

Permalink
Fixed async loading of page breaking mathjax
Browse files Browse the repository at this point in the history
See getpelican#933
for more details.
  • Loading branch information
drorata committed Sep 5, 2017
1 parent 4d86c7a commit e08da7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions liquid_tags/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
}
</style>
<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML"></script>
<script type="text/javascript">
init_mathjax = function() {
if (window.MathJax) {
Expand All @@ -177,7 +177,7 @@
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ]
},
displayAlign: 'left', // Change this to 'center' to center equations.
displayAlign: 'center', // Change this to 'center' to center equations.
"HTML-CSS": {
styles: {'.MathJax_Display': {"margin": 0}}
}
Expand Down

0 comments on commit e08da7c

Please sign in to comment.