import { closeHistory } from '@atlaskit/prosemirror-history';
export const createRule = (match, handler, allowsBackwardMatch = false) => {
  return {
    match,
    handler,
    onHandlerApply: (_state, tr) => {
      closeHistory(tr);
    },
    allowsBackwardMatch
  };
};