import { markTypeFactory } from "../../../../utils/schema.js";
export const boldMarkName = 'strong';
export const boldType = markTypeFactory(boldMarkName);
export const BoldSpecs = (builder) => {
    builder.addMark(boldMarkName, () => ({
        spec: {
            parseDOM: [
                { tag: 'b' },
                { tag: 'strong' },
                {
                    style: 'font-weight',
                    getAttrs: (value) => /^(bold(er)?|[5-9]\d{2,})$/.test(value) && null,
                },
            ],
            toDOM() {
                return ['strong'];
            },
        },
        fromMd: {
            tokenSpec: {
                name: boldMarkName,
                type: 'mark',
            },
        },
        toMd: { open: '**', close: '**', mixable: true, expelEnclosingWhitespace: true },
    }));
};
//# sourceMappingURL=index.js.map
