Remove math engines

This commit is contained in:
cuom1999 2024-02-26 14:49:52 -06:00
parent 3f53c62d4d
commit 1e7957a2cd
22 changed files with 67 additions and 81 deletions

View file

@ -1,4 +1,4 @@
function mathjax_pagedown($) {
function latex_pagedown($) {
$.each(window.editors, function (id, editor) {
var preview = $('div.wmd-preview#' + id + '_wmd_preview')[0];
editor.hooks.chain('onPreviewRefresh', function () {
@ -8,8 +8,8 @@ function mathjax_pagedown($) {
});
}
window.mathjax_pagedown = mathjax_pagedown;
window.latex_pagedown = latex_pagedown;
$(function () {
(mathjax_pagedown)('$' in window ? $ : django.jQuery);
(latex_pagedown)('$' in window ? $ : django.jQuery);
});