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

Checkbox inconsistent behaviour #21

Closed
Chaosmeister opened this issue Oct 12, 2023 · 1 comment · Fixed by #22
Closed

Checkbox inconsistent behaviour #21

Chaosmeister opened this issue Oct 12, 2023 · 1 comment · Fixed by #22

Comments

@Chaosmeister
Copy link
Collaborator

Chaosmeister commented Oct 12, 2023

If a line starts with [ ]/[x], a checkbox element will be created by the markdown parser.
This also works if the line starts with a bullet point list indicator +/-/ *, quotes and their combinations.

image

If there is text in front of the [ ]/[x] the markdown parser does not create the checkbox

image

the checkbox parser does not distinguish this case, yet.
this checkbox now incorrectly offsets all "correct" checkboxes

@Chaosmeister
Copy link
Collaborator Author

we can either allow checkboxes anywhere in the text in the markdownparser or adjust the toggle algorithm to only include valid markdown checkboxes

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 a pull request may close this issue.

1 participant