Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix enter key behavior on - [x] |item1 #1138

Merged
merged 4 commits into from
Aug 13, 2022
Merged

Fix enter key behavior on - [x] |item1 #1138

merged 4 commits into from
Aug 13, 2022

Conversation

yy0931
Copy link
Contributor

@yy0931 yy0931 commented Jun 24, 2022

In this case - [x] should be moved to the next line.

task-list-problem

This change makes markdown.extension.onEnterKey to move - [x] if the cursor is right after - [x].

task-list-after

This is another use case.

task-list-use-case

@yzhang-gh
Copy link
Owner

Thanks. I agree with you as Word seems to have the same behavior.

Could you add a few comments about the decision logic in the source code? It will be helpful to understand the context if we revisit it in the future.

@yy0931
Copy link
Contributor Author

yy0931 commented Jun 25, 2022

I've added some comments.

@yzhang-gh
Copy link
Owner

Looks perfect. I will merge it as soon as the previous PRs are resolved.

@yzhang-gh yzhang-gh merged commit 40465be into yzhang-gh:master Aug 13, 2022
@yzhang-gh
Copy link
Owner

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants