import { markTypeFactory } from "../../../../utils/schema.js";
export const italicMarkName = 'em';
export const italicType = markTypeFactory(italicMarkName);
export const ItalicSpecs = (builder) => {
    builder.addMark(italicMarkName, () => ({
        spec: {
            parseDOM: [
                { tag: 'i' },
                { tag: 'em' },
                { style: 'font-style', getAttrs: (value) => value === 'italic' && null },
            ],
            toDOM() {
                return ['em'];
            },
        },
        toMd: { open: '*', close: '*', mixable: true, expelEnclosingWhitespace: true },
        fromMd: { tokenSpec: { name: italicMarkName, type: 'mark' } },
    }));
};
//# sourceMappingURL=index.js.map
