Markdown task lists don't work properly with uppercase "X" #5193

Closed
opened 2025-11-02 06:17:23 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @mooror on GitHub (Apr 5, 2020).

Description

Background information

When using markdown's task list feature (e.g. * [ ] Task name) in Gitea issues you can use an upper or lowercase "x" to mark tasks as complete.

The Problem

Currently, if you use an uppercase "x" (e.g. * [X] Task name) the item will be checked in the issue itself but when you view the issues list instead of seeing a a completed item you will see one less item in the list.

Let me explain, in the screenshot below you can see two issues. Each issue has the exact same list of 5 todo items, but one uses an uppercase "x" (e.g. * [X] Task name) and the other a lowercase "x" (e.g. * [x] Task name). But in the list view you can see one shows 1/5 complete ( which is correct) while the other shows 0/4 complete (not correct)

Screenshots

image

Originally created by @mooror on GitHub (Apr 5, 2020). - Gitea version (or commit ref): `1.11.3` - Git version: `2.7.4` - Operating system: `Linux Mint (Ubuntu 16.04.6 LTS)` - Database: - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (https://try.gitea.io/admonish/markdown-checkbox-bug-test/issues) - [ ] No - [ ] Not relevant - Log gist: N/A ## Description ### Background information When using markdown's task list feature (e.g. `* [ ] Task name`) in Gitea issues you can use an upper or lowercase "x" to mark tasks as complete. ### The Problem Currently, if you use an uppercase "x" (e.g. `* [X] Task name`) the item will be checked in the issue itself but when you view the issues list instead of seeing a a completed item you will see one less item in the list. Let me explain, in the screenshot below you can see two issues. Each issue has the exact same list of **5 todo items**, but one uses an uppercase "x" (e.g. `* [X] Task name`) and the other a lowercase "x" (e.g. `* [x] Task name`). But in the list view you can see one shows 1/5 complete ( which is correct) while the other shows 0/4 complete (not correct) ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** --> ![image](https://user-images.githubusercontent.com/6110819/78508623-73f36080-7745-11ea-9476-cf8622101b15.png)
Author
Owner

@mooror commented on GitHub (Apr 6, 2020):

Thanks guys for the quick fix

@mooror commented on GitHub (Apr 6, 2020): Thanks guys for the quick fix
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5193