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