import { Editor } from "slate";
import { isMarkActive } from "./isMarkActive";
function toggleMark(editor, format) {
    const isActive = isMarkActive(editor, format);
    if (isActive)
        Editor.removeMark(editor, format);
    else
        Editor.addMark(editor, format, true);
}
export { toggleMark };
