/** @jsx jsx */ import { Editor, Transforms } from 'slate'; import { jsx } from '../../../../../../support/jsx'; export const input = ( Welcome to slate-yjs! ); export const expected = ( ); export function run(editor: Editor) { Editor.withoutNormalizing(editor, () => { Transforms.setNodes( editor, { type: 'unordered-list-item' }, { at: [1], } ); Transforms.moveNodes(editor, { at: [1], to: [0, 0], }); }); }