obsidian-tasks
obsidian-tasks copied to clipboard
Numbered sub-tasks aren't rendered in reader mode
Please check that this issue hasn't been reported before.
- [X] I searched previous Bug Reports didn't find any similar reports.
Expected Behavior
I just realized this while using the latest release after the PR I submitted (https://github.com/obsidian-tasks-group/obsidian-tasks/pull/1363). It looks like sub-tasks in numbered task lists aren't being rendered in reader mode.
The expected behavior is that a numbered task list with sub tasks would have all the same items in read and edit mode.
Current behaviour
When you switch to reader mode the sub tasks of numbered task-lists are no longer getting rendered. This only affects numbered task-lists. Bullet point task lists and regular numbered lists are unaffected.
Edit mode
Reader mode
Steps to reproduce
To reproduce just create a numbered task list with sub-tasks and switch to reader mode. Here's the markdown I used for testing:
### Bullet point to-do list
- [ ] Bullet 1
- [ ] Sub bullet 1
- [ ] Bullet 2
- [ ] Bullet 3
### Numbered to-do list
1. [ ] Task 1
1. [ ] Sub task 1
2. [ ] Task 2
3. [ ] Task 3
### Regular numbered list
1. Item 1
1. Sub item 1
2. Item 2
3. Item 3
Which Operating Systems are you using?
- [ ] Android
- [ ] iPhone/iPad
- [ ] Linux
- [ ] macOS
- [X] Windows
Obsidian Version
1.0.3
Tasks Plugin Version
1.20.0
Checks
- [X] I have tried it with all other plugins disabled and the error still occurs
Possible solution
No response