jgm / djot

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

Style change doesn't break task lists #253

Open faelys opened 11 months ago

faelys commented 11 months ago

Please consider the following example in the playground:

- foo
+ bar
* baz

- [ ] foo
+ [ ] bar
* [ ] baz

That yields three single-item unordered lists, but only one three-item task list. Is the inconsistency intended?

I hesitated between reporting it here or under djot.js, but I eventually rationalized that it's a consequence of having a single marker - [ ] for all task lists in the list item specification so if it's not intended there probably should be at least clarification or extra lines in the table.

Considering how surprising I think it is, I believe even if it's intended there should be some clarification to spell it out in the specification.

(On a more meta note, definition lists are the last feature missing from my parser in Erlang, so I'll probably stop bothering you soon with my tickets.)

jgm commented 11 months ago

I agree, we should be consistent here.