(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "./FormattedError", "./Markdown"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    const FormattedError_1 = require("./FormattedError");
    const Markdown_1 = require("./Markdown");
    class MarkdownError extends FormattedError_1.default {
        constructor(text) {
            const a = super(Markdown_1.default.from(text));
            a.__proto__ = MarkdownError.prototype;
            return a;
        }
    }
    exports.default = MarkdownError;
});
//# sourceMappingURL=MarkdownError.js.map