Unverified Commit bd21338f authored by Johnny's avatar Johnny Committed by GitHub

fix(web): markdown list auto-completion creates new line correctly (#5238)

Co-authored-by: 's avatarClaude <noreply@anthropic.com>
parent c54fcf7a
......@@ -164,7 +164,8 @@ const Editor = forwardRef(function Editor(props: Props, ref: React.ForwardedRef<
// Detect list item using regex-based detection
const listInfo = detectLastListItem(prevContent);
if (listInfo.type) {
const insertText = generateListContinuation(listInfo);
event.preventDefault();
const insertText = "\n" + generateListContinuation(listInfo);
editorActions.insertText(insertText);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment