/** @jsx jsx */
import { Editor } from 'slate';
import { jsx } from '../../../../../support/jsx';

export const input = (
  <editor>
    <unstyled>
      <text bold italic>
        Hello
        <anchor /> world
        <focus />!
      </text>
    </unstyled>
  </editor>
);

export const expected = (
  <editor>
    <unstyled>
      <text bold italic>
        Hello
      </text>
      <text italic>
        <anchor /> world
        <focus />
      </text>
      <text bold italic>
        !
      </text>
    </unstyled>
  </editor>
);

export const inputRemoteEditor = (
  <editor>
    <unstyled>
      <text bold italic>
        Hello
        <cursor /> world!
      </text>
    </unstyled>
  </editor>
);

export function run(editor: Editor) {
  editor.removeMark('bold');
}
