--relaxed-tasklist-character (parse.relaxed_tasklist_matching) lets a task list item symbol be any single character other than ] or a line ending. Only a space makes the item incomplete. The option has no effect unless task lists are enabled.
For the full rules, see Relaxed task list character.
Without the option, only a space, x, or X is a valid symbol:
Example 1
$ comrak -e tasklist -t commonmark -t xml
- ---
- To do
- Done
- [~] Deferred
- [-] Cancelled
To do
Done
[~] Deferred
[-] Cancelled
- ---
To do
Done
[~] Deferred
[-] Cancelled
With the option, other characters are valid too:
Example 2
$ comrak -e tasklist --relaxed-tasklist-character -t commonmark -t xml
- ---
- To do
- Done
- Deferred
- Cancelled
To do
Done
Deferred
Cancelled
- ---
To do
Done
Deferred
Cancelled