diff --git a/packages/netlify-cms-widget-markdown/src/MarkdownControl/plugins/List.js b/packages/netlify-cms-widget-markdown/src/MarkdownControl/plugins/List.js index 58838100..20405950 100644 --- a/packages/netlify-cms-widget-markdown/src/MarkdownControl/plugins/List.js +++ b/packages/netlify-cms-widget-markdown/src/MarkdownControl/plugins/List.js @@ -209,6 +209,14 @@ function ListPlugin({ defaultType, unorderedListType, orderedListType }) { }, }, onKeyDown(event, editor, next) { + // Handle space ('*' + ) or ('-' + ) + if (isHotkey('space', event)) { + if (editor.value.startBlock.text === '*' || editor.value.startBlock.text === '-') { + event.preventDefault(); + return editor.wrapInList('bulleted-list').deleteBackward(1); + } + } + // Handle Backspace if (isHotkey('backspace', event) && editor.value.selection.isCollapsed) { // If beginning block is not of default type, do nothing