Draft: Use native task list parsing in comrak/gitlab-glfm-markdown

What does this MR do and why?

Got inapplicable task items working with the native parser.

Modifies the TaskListFitler to use the native task list parsing in comrak/gitlab-glfm-markdown

How to set up and validate locally

Jump into an comment/description field and verify that various task lists render and are clickable.

Here is the test markdown from Add inapplicable checkboxes to GLFM (!85982 - merged)

Test Markdown
**Tight Unordered List**

- [ ] one
  - [~] one.1 (inapplicable)
  - [ ] one.2
- [~] two (inapplicable)
  - [~] two.1 (inapplicable)
  - [x] two.2
- [x] three

**Tight Ordered List**

1. [ ] one
   1. [~] one.1 (inapplicable)
   2. [ ] one.2
2. [~] two (inapplicable)
   1. [~] two.1 (inapplicable)
   2. [x] two.2
3. [x] three

**Loose Unordered List**

- [ ] one
  - [~] one.1 (inapplicable)
  - [ ] one.2
- [~] two (inapplicable)
- [x] three
- [~] four (inapplicable)

  ```ruby
  x = 1
  ```

  Below is a sub list

  - [x] four.1

    Below is some code

    ```ruby
    x = 1
    ```

  - [ ] five

**Loose Ordered List**

1. [ ] one
   1. [~] one.1 (inapplicable)
   2. [ ] one.2
2. [~] two (inapplicable)
3. [x] three
4. [~] four (inapplicable)

   ```ruby
   x = 1
   ```

   Below is a sub list

   1. [x] four.1

      Below is some code

      ```ruby
      x = 1
      ```

   2. [ ] five

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Brett Walker

Merge request reports

Loading