"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.YfmConfigs = void 0;
require("@diplodoc/transform/dist/js/base.js");
require("@diplodoc/transform/dist/js/_yfm-only.js"); // eslint-disable-line import/order
const prosemirror_state_1 = require("prosemirror-state");
const YfmStaticView_1 = require("../../../view/components/YfmHtml/YfmStaticView.js");
const YfmConfigsSpecs_1 = require("./YfmConfigsSpecs/index.js");
require("@diplodoc/transform/dist/css/base.css");
require("@diplodoc/transform/dist/css/_yfm-only.css"); // eslint-disable-line import/order
require("./yfm.css"); // eslint-disable-line import/order
const YfmConfigs = (builder, opts) => {
    // apply md-it-attrs plugin and ignore yfm lint token
    builder.use(YfmConfigsSpecs_1.YfmConfigsSpecs, opts);
    const { mix } = opts;
    const mods = { ...opts.mods };
    // by default mods['no-list-reset']===true
    if (mods['no-list-reset'] !== false)
        mods['no-list-reset'] = true;
    builder.addPlugin(() => new prosemirror_state_1.Plugin({
        props: {
            attributes: {
                class: `${(0, YfmStaticView_1.b)(mods, mix)} yfm-editor`,
            },
        },
    }));
};
exports.YfmConfigs = YfmConfigs;
//# sourceMappingURL=index.js.map
