Skip to content

Commit c204d2b

Browse files
wxiaoguangdelvh
andauthored
Update web_src/js/features/comp/EditorMarkdown.js
Co-authored-by: delvh <dev.lh@web.de>
1 parent 1c8c42d commit c204d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/features/comp/EditorMarkdown.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function handleNewline(textarea, e) {
7373

7474
e.preventDefault();
7575
if (!line) {
76-
// clear current line
76+
// clear current line if we only have i.e. '1. ' and the user presses enter again to finish creating a list
7777
textarea.value = value.slice(0, lineStart) + value.slice(lineEnd);
7878
} else {
7979
// start a new line with the same indention and prefix

0 commit comments

Comments
 (0)