Skip to content
This repository was archived by the owner on Nov 23, 2021. It is now read-only.

Commit a540784

Browse files
committed
Fix MathJax Bug
1 parent e18257b commit a540784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/ditto.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ $(function($) {
395395
$.get(path, function(data) {
396396
compile_into_dom(path, data, function() {
397397
// rerender mathjax and reset mathjax equation counter
398-
if (MathJax) {
398+
if (MathJax && MathJax.Extension["Tex/AMSmath"]) {
399399
MathJax.Extension["TeX/AMSmath"].startNumber = 0;
400400
MathJax.Extension["TeX/AMSmath"].labels = {};
401401

0 commit comments

Comments
 (0)