creecros / MarkdownPlus

Improved Markdown, with check boxes, emoji shortcode, inline html, etc...
MIT License
50 stars 15 forks source link

Checkbox inconsistent behaviour #21

Closed Chaosmeister closed 10 months ago

Chaosmeister commented 11 months ago

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 commented 11 months ago

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