"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Superscript = exports.superscriptType = exports.superscriptMarkName = void 0;
const actions_1 = require("../../../utils/actions.js");
const inputrules_1 = require("../../../utils/inputrules.js");
const SuperscriptSpecs_1 = require("./SuperscriptSpecs/index.js");
var SuperscriptSpecs_2 = require("./SuperscriptSpecs/index.js");
Object.defineProperty(exports, "superscriptMarkName", { enumerable: true, get: function () { return SuperscriptSpecs_2.superscriptMarkName; } });
Object.defineProperty(exports, "superscriptType", { enumerable: true, get: function () { return SuperscriptSpecs_2.superscriptType; } });
const supAction = 'supscript';
const Superscript = (builder) => {
    builder.use(SuperscriptSpecs_1.SuperscriptSpecs);
    builder
        .addAction(supAction, ({ schema }) => (0, actions_1.createToggleMarkAction)((0, SuperscriptSpecs_1.superscriptType)(schema)))
        .addInputRules(({ schema }) => ({
        rules: [
            (0, inputrules_1.markInputRule)({ open: '^', close: '^', ignoreBetween: '^' }, (0, SuperscriptSpecs_1.superscriptType)(schema)),
        ],
    }));
};
exports.Superscript = Superscript;
//# sourceMappingURL=index.js.map
