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

Commit 1ac6db0

Browse files
authored
Merge pull request #53 from withspectrum/fix-code-exit
Fix code block exit with ```
2 parents 5463b26 + a0750a5 commit 1ac6db0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function checkReturnForState(config, editorState, ev) {
174174
newEditorState = changeCurrentBlockType(
175175
newEditorState,
176176
type,
177-
text.replace(/\n```\s*$/, "")
177+
text.replace(/```\s*$/, "")
178178
);
179179
newEditorState = insertEmptyBlock(newEditorState);
180180
} else {

0 commit comments

Comments
 (0)