Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit c119d18

Browse files
committed
Let users type two spaces after each other
1 parent c9ee47e commit c119d18

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,6 @@ const createMarkdownPlugin = (_config = {}) => {
347347
// If we're in a link - don't transform markdown
348348
if (inLink(editorState)) return "not-handled";
349349

350-
// Don't let users type two spaces after another
351-
if (character === " " && getCurrentLine(editorState).slice(-1) === " ")
352-
return "handled";
353-
354350
const newEditorState = checkCharacterForState(
355351
config,
356352
editorState,

0 commit comments

Comments
 (0)