import markPlugin from 'markdown-it-mark';
import { markTypeFactory } from "../../../../utils/schema.js";
export const markMarkName = 'mark';
export const markMarkType = markTypeFactory(markMarkName);
export const MarkSpecs = (builder) => {
    builder
        .configureMd((md) => md.use(markPlugin))
        .addMark(markMarkName, () => ({
        spec: {
            parseDOM: [{ tag: 'mark' }],
            toDOM() {
                return ['mark'];
            },
        },
        fromMd: {
            tokenSpec: {
                name: markMarkName,
                type: 'mark',
            },
        },
        toMd: {
            open: '==',
            close: '==',
            mixable: true,
            expelEnclosingWhitespace: true,
        },
    }));
};
//# sourceMappingURL=index.js.map
