Skip to content

Commit

Permalink
Update web_src/js/features/comp/EditorMarkdown.js
Browse files Browse the repository at this point in the history
Co-authored-by: delvh <[email protected]>
  • Loading branch information
wxiaoguang and delvh authored Jun 20, 2024
1 parent 1c8c42d commit c204d2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_src/js/features/comp/EditorMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function handleNewline(textarea, e) {

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

0 comments on commit c204d2b

Please sign in to comment.