da2a11adf9
This reverts commit 0494a36681
.
17 lines
No EOL
496 B
JavaScript
Executable file
17 lines
No EOL
496 B
JavaScript
Executable file
function mathjax_pagedown($) {
|
|
if ('MathJax' in window) {
|
|
$.each(window.editors, function (id, editor) {
|
|
var preview = $('div.wmd-preview#' + id + '_wmd_preview')[0];
|
|
editor.hooks.chain('onPreviewRefresh', function () {
|
|
MathJax.typeset(preview);
|
|
});
|
|
MathJax.typeset(preview);
|
|
});
|
|
}
|
|
}
|
|
|
|
window.mathjax_pagedown = mathjax_pagedown;
|
|
|
|
$(function () {
|
|
(mathjax_pagedown)('$' in window ? $ : django.jQuery);
|
|
}); |