add initial marp implementation with sample content and build configuration
This commit is contained in:
51
node_modules/mathjax-full/js/core/Handler.js
generated
vendored
Normal file
51
node_modules/mathjax-full/js/core/Handler.js
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
if (typeof b !== "function" && b !== null)
|
||||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AbstractHandler = void 0;
|
||||
var MathDocument_js_1 = require("./MathDocument.js");
|
||||
var DefaultMathDocument = (function (_super) {
|
||||
__extends(DefaultMathDocument, _super);
|
||||
function DefaultMathDocument() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
return DefaultMathDocument;
|
||||
}(MathDocument_js_1.AbstractMathDocument));
|
||||
var AbstractHandler = (function () {
|
||||
function AbstractHandler(adaptor, priority) {
|
||||
if (priority === void 0) { priority = 5; }
|
||||
this.documentClass = DefaultMathDocument;
|
||||
this.adaptor = adaptor;
|
||||
this.priority = priority;
|
||||
}
|
||||
Object.defineProperty(AbstractHandler.prototype, "name", {
|
||||
get: function () {
|
||||
return this.constructor.NAME;
|
||||
},
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
AbstractHandler.prototype.handlesDocument = function (_document) {
|
||||
return false;
|
||||
};
|
||||
AbstractHandler.prototype.create = function (document, options) {
|
||||
return new this.documentClass(document, this.adaptor, options);
|
||||
};
|
||||
AbstractHandler.NAME = 'generic';
|
||||
return AbstractHandler;
|
||||
}());
|
||||
exports.AbstractHandler = AbstractHandler;
|
||||
//# sourceMappingURL=Handler.js.map
|
||||
Reference in New Issue
Block a user