Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
as-com committed Aug 23, 2016
1 parent 491b7af commit 6bedd74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function katex_rubber() {
global $katex_using;
if ($katex_using) {
?>
<script>!function(){"use strict";var t=document.querySelectorAll("script[type='text/katex']");Array.prototype.forEach.call(t,function(t,e){var r={displayMode:"true"===t.getAttribute("data-display"),throwOnError:!1},a=document.createElement("span");katex.render(this.text,a,r),t.parentNode.replaceChild(a,t)})}();</script>
<script>!function(){"use strict";var t=document.querySelectorAll("script[type='text/katex']");Array.prototype.forEach.call(t,function(t,e){var r={displayMode:"true"===t.getAttribute("data-display"),throwOnError:!1},a=document.createElement("span");katex.render(t.textContent,a,r),t.parentNode.replaceChild(a,t)})}();</script>
<?php
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/render-stub.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
throwOnError: false
};
var eq = document.createElement("span");
katex.render(this.text, eq, options);
katex.render(el.textContent, eq, options);
el.parentNode.replaceChild(eq, el);
});
})();

0 comments on commit 6bedd74

Please sign in to comment.