jgm / djot

A light markup language
https://djot.net
MIT License
1.62k stars 43 forks source link

Allow underscore in task list to denote unchecked item #305

Open stoicon opened 3 weeks ago

stoicon commented 3 weeks ago

Thank you for djot and CommonMark

Currently, unchecked item requires exactly one space inside square brackets. It leads to typing errors, especially in editors without monospaced fonts, for example, some apps on phones.

This issue was encountered when using markdown, but it also applies to djot. Also, when writing this issue on GitHub from the browser, the text box does not use monospaced fonts.

Therefore, allow underscore in task list to denote unchecked item.

Why underscore?\ Because the unchecked box will look like an empty box in the source code.

Take a look at the following example:

- [_] unchecked item with underscore
- [ ] unchecked item with space
- [x] checked item with lowercase letter x
- [X] checked item with uppercase letter X
jgm commented 3 weeks ago

I like the idea.

stoicon commented 3 weeks ago

Thank you!