diff --git a/site/examples/markdown-shortcuts.js b/site/examples/markdown-shortcuts.js index 888541b39..1eba39a4e 100644 --- a/site/examples/markdown-shortcuts.js +++ b/site/examples/markdown-shortcuts.js @@ -85,7 +85,7 @@ const withShortcuts = editor => { ) { Editor.setNodes(editor, { type: 'paragraph' }) - if (match.type === 'list-item') { + if (block.type === 'list-item') { Editor.unwrapNodes(editor, { match: { type: 'bulleted-list' } }) }