"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Subscript = exports.subscriptType = exports.subscriptMarkName = void 0;
const actions_1 = require("../../../utils/actions.js");
const inputrules_1 = require("../../../utils/inputrules.js");
const SubscriptSpecs_1 = require("./SubscriptSpecs/index.js");
var SubscriptSpecs_2 = require("./SubscriptSpecs/index.js");
Object.defineProperty(exports, "subscriptMarkName", { enumerable: true, get: function () { return SubscriptSpecs_2.subscriptMarkName; } });
Object.defineProperty(exports, "subscriptType", { enumerable: true, get: function () { return SubscriptSpecs_2.subscriptType; } });
const subAction = 'subscript';
const Subscript = (builder) => {
    builder.use(SubscriptSpecs_1.SubscriptSpecs);
    builder
        .addAction(subAction, ({ schema }) => (0, actions_1.createToggleMarkAction)((0, SubscriptSpecs_1.subscriptType)(schema)))
        .addInputRules(({ schema }) => ({
        rules: [
            (0, inputrules_1.markInputRule)({ open: '~', close: '~', ignoreBetween: '~' }, (0, SubscriptSpecs_1.subscriptType)(schema)),
        ],
    }));
};
exports.Subscript = Subscript;
//# sourceMappingURL=index.js.map
