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 declined tasks in markdown task lists #1944

Closed knolleCC closed 1 year ago

knolleCC commented 1 year ago

⚠️ This issue respects the following points: ⚠️

Description

Please support declined tasks in markdown task lists as defined in todo-md:

- [-] This task has been declined

Information

App Version: 2.10.6

Source

F-Droid

Format / File type

Markdown

Additional info / Log

-
gsantner commented 1 year ago

Please confirm with flexmark-java (https://github.com/vsch/flexmark-java) if this is supported. Also, is this syntax support in ANY common specification like GFM or CommonMark?

Otherwise, not sure whats the benefit of making anything custom here, as it is anyway not supported anywhere else.

knolleCC commented 1 year ago

CommonMark has no task lists. GFM only has open [ ] and done [x] and flexmark only supports GFM tasklists, so no, it is not in any common markdown spec I know of and that's a shame! In my world, not all tasks are "done" someday. Many get declined, because the idea was not that good on second thought or realization not feasible.

However, the Zim-Wiki does support more states of checkboxes which markor does not at the moment, but as I see this is already covered in #1185.

So, you're absolutely on the safe side to decline this request... but wait, is it decline again? 😆

gsantner commented 1 year ago

it is not in any common markdown spec I know of and that's a shame

Sorry to say, but that's then how it is - this is not something supported at Markdown generally, and basically nowhere else thus if it's not in any of the specs all parsers implement. If you need a more sophisticated format, maybe choose i.e. Zim, where the format generally has that syntax baked in.

However, the Zim-Wiki does support more states of checkboxes

Correct the Zim/WikiText format. But not Markdown.

which markor does not at the moment, but as I see this is already covered in 1185.

When that gets some Zim users attention theres a good chance it's supported yes, by however means. But that's for Zim/Wikitext. Not for Markdown. As HTML checkbox and Markdown checkbox both only support two states it likely means Zim converts it at Zim side to some custom HTML.