import { markTypeFactory } from "../../../../utils/schema.js";
export const strikeMarkName = 'strike';
export const strikeType = markTypeFactory(strikeMarkName);
export const StrikeSpecs = (builder) => {
    builder.addMark(strikeMarkName, () => ({
        spec: {
            parseDOM: [{ tag: 'strike' }, { tag: 's' }],
            toDOM() {
                return ['strike'];
            },
        },
        fromMd: {
            tokenSpec: {
                name: strikeMarkName,
                type: 'mark',
            },
            tokenName: 's',
        },
        toMd: { open: '~~', close: '~~', mixable: true, expelEnclosingWhitespace: true },
    }));
};
//# sourceMappingURL=index.js.map
