gsantner / markor

Text editor - Notes & ToDo (for Android) - Markdown, todo.txt, plaintext, math, ..
https://github.com/gsantner/markor/discussions/2269
Other
3.83k stars 368 forks source link

Support the task check of the number list #1978

Closed ina6ra closed 1 year ago

ina6ra commented 1 year ago

⚠️ This issue respects the following points: ⚠️

Description

I want you to support the task check of the number list.

(Now)

1. [ ] one           1. [ ] one
2. [ ] two      ->   -[ ] [ ] two
3. [ ] three         -[ ] [ ] three
(Support)

1. [ ] one           1. [ ] one
2. [ ] two      ->   2. [x] two
3. [ ] three         3. [x] three

Information

Android version: 10 Device: Rakuten Hand (P710) App Version: v2.10.7(144)

Source

Google Play

Format / File type

Markdown

Additional info / Log

-
gsantner commented 1 year ago

Is this syntax generally support at Markdown, and does this syntax work at other applications? (see https://spec.commonmark.org/0.30/)

ina6ra commented 1 year ago

Supported by Obsidian. Markor and Github will display unnumbered lists.

In the previous version, it was as follows, so I thought it would be supported.

1. [ ] one           1. [ ] one
2. [ ] two      ->   2. x[ ] two
3. [ ] three         3. x[ ] three
gsantner commented 1 year ago

Markor and Github will display unnumbered lists.

OK yes, it's not something part of CommonMark or GFM (which Markor as well GitHub supports). I've checked the Markdown parser Markor uses (flexmark) and it's not something I can find.

That the autoatmic 2. x[ ] task list addition happened (or happens) is rather a unwanted bug of Markor 😄

Closing