add initial marp implementation with sample content and build configuration
This commit is contained in:
30
node_modules/mathjax-full/js/util/Retries.js
generated
vendored
Normal file
30
node_modules/mathjax-full/js/util/Retries.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.retryAfter = exports.handleRetriesFor = void 0;
|
||||
function handleRetriesFor(code) {
|
||||
return new Promise(function run(ok, fail) {
|
||||
try {
|
||||
ok(code());
|
||||
}
|
||||
catch (err) {
|
||||
if (err.retry && err.retry instanceof Promise) {
|
||||
err.retry.then(function () { return run(ok, fail); })
|
||||
.catch(function (perr) { return fail(perr); });
|
||||
}
|
||||
else if (err.restart && err.restart.isCallback) {
|
||||
MathJax.Callback.After(function () { return run(ok, fail); }, err.restart);
|
||||
}
|
||||
else {
|
||||
fail(err);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
exports.handleRetriesFor = handleRetriesFor;
|
||||
function retryAfter(promise) {
|
||||
var err = new Error('MathJax retry');
|
||||
err.retry = promise;
|
||||
throw err;
|
||||
}
|
||||
exports.retryAfter = retryAfter;
|
||||
//# sourceMappingURL=Retries.js.map
|
||||
Reference in New Issue
Block a user