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.

This commit is contained in:
Davide P. Cervone 2014-12-31 08:07:38 -05:00
parent 88a96372c0
commit 4b6a2f4ec3

View File

@ -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