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

Lexer does not recognizes task if it is the last thing #2769

Closed
trusz opened this issue Apr 2, 2023 · 2 comments
Closed

Lexer does not recognizes task if it is the last thing #2769

trusz opened this issue Apr 2, 2023 · 2 comments

Comments

@trusz
Copy link

trusz commented Apr 2, 2023

Marked version: 4.3.0

Describe the bug
The lexer does not recognizes a - [ ] as task if:

  • it is the last thing in the file
  • it does not has any char following it e.g.:
    • - [ ]: the char ] is the last in the line => won't get recognised
    • - [ ] : a space follows the ] => it will be recognised

To Reproduce
Steps to reproduce the behavior:

Expected behavior
I would expect that even if a task does not have any char it will be recognised as an empty task, but I am not sure what does the specification says about that.

@UziTech
Copy link
Member

UziTech commented Apr 2, 2023

We try to make it look like it would in GitHub. As you can see this is working as intended.

This how GitHub renders - [ ]

  • [ ]

@trusz
Copy link
Author

trusz commented Apr 3, 2023

I see. Thanks for the answer!

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

No branches or pull requests

2 participants