@pie-element/simple-cloze 0.1.4-next.13 → 0.1.4-next.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/module/print.js CHANGED
@@ -2154,10 +2154,16 @@ function ii(e) {
2154
2154
  function ai(e = {}) {
2155
2155
  let t = e.useSingleDollar ?? !1;
2156
2156
  return async (n) => {
2157
- if (typeof window > "u" || (Qr(n), !$r(n, t))) return;
2158
- await ii(e);
2159
- let r = Xr();
2160
- await r?.startup?.promise, typeof r?.typesetPromise == "function" && await r.typesetPromise([n]);
2157
+ if (typeof window > "u") return;
2158
+ Qr(n);
2159
+ let r = ii(e);
2160
+ if (!$r(n, t)) {
2161
+ r.catch(() => {});
2162
+ return;
2163
+ }
2164
+ await r;
2165
+ let i = Xr();
2166
+ await i?.startup?.promise, typeof i?.typesetPromise == "function" && await i.typesetPromise([n]);
2161
2167
  };
2162
2168
  }
2163
2169
  var oi = "@pie-lib/math-rendering", si = "@pie-lib/math-rendering@2", ci = null;