Tasklist checkbox cannot be checked if text contains square brackets
Summary
In some cases (related to particular markdown I think), trying to check items on a tasklist fails and says 'undefined'.
Steps to reproduce
Create a task list with the following markdown:
* [ ] [AS] Enforce Client
* [ ] [AS] Enforce Client key 1
* [ ] [AS] Enforce Client key 2
It seems the [AS] part is particularly important to reproduce the bug.
Example Project
-
[AS] Enforce Client -
[AS] Enforce Client key 1 -
[AS] Enforce Client key 2
What is the current bug behavior?
The '0 of 'x' tasks completed' text changes to 'undefined', or doesn't change at all.
What is the expected correct behavior?
Changes to '1 of 'x' tasks completed'.
Output of checks
This bug happens on GitLab.com
Edited by Mark Fletcher