From 4b6a2f4ec3b58d7f811a538f39b5735884675de8 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Wed, 31 Dec 2014 08:07:38 -0500 Subject: [PATCH] Add priority 100 to label reset so that it comes after other post-filters (in particular, the CTHML-preview, which can load files). Resolves second issue in #970. --- unpacked/extensions/TeX/AMSmath.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unpacked/extensions/TeX/AMSmath.js b/unpacked/extensions/TeX/AMSmath.js index 8e096e05f..b90898c5c 100644 --- a/unpacked/extensions/TeX/AMSmath.js +++ b/unpacked/extensions/TeX/AMSmath.js @@ -617,7 +617,7 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { MathJax.Hub.Insert(AMS.IDs,AMS.eqIDs); // save IDs from this equation MathJax.Hub.Insert(AMS.labels,AMS.eqlabels); // save labels from this equation if (AMS.badref && !data.math.texError) {AMS.refs.push(data.script)} // reprocess later - }); + },100); MathJax.Hub.Register.MessageHook("Begin Math Input",function () { AMS.refs = []; // array of jax with bad references