Skip to content

Commit 5da56b2

Browse files
committed
test: Add test data from #3344 - for when #2061 is worked on
1 parent c743db7 commit 5da56b2

File tree

3 files changed

+476
-0
lines changed

3 files changed

+476
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# code_block_in_task
2+
3+
## Tasks with code blocks - code-blocks wrongly hidden
4+
5+
- [ ] #task Task in 'code_block_in_task' level-1-a
6+
- [ ] #task Task in 'code_block_in_task' level-2-a
7+
```sh
8+
ls -la
9+
```
10+
- [ ] #task Task in 'code_block_in_task' level-2-b
11+
- [ ] #task Task in 'code_block_in_task' level-1-b
12+
```sh
13+
ls -la
14+
```
15+
- [ ] #task Task in 'code_block_in_task' level-1-c
16+
17+
Related issues:
18+
19+
- #3344: [Code block in list doesn't render in Reading mode](https://github.com/obsidian-tasks-group/obsidian-tasks/issues/3344)
20+
- #2061: [Multi-line tasks (indented lines below a task items) are not shown in Reading mode and Tasks query results](https://github.com/obsidian-tasks-group/obsidian-tasks/issues/2061)
21+
22+
## Non-tasks with code blocks - code blocks rendered correctly
23+
24+
- [ ] Non-task in 'code_block_in_task' level-1-a
25+
- [ ] Non-task in 'code_block_in_task' level-2-a
26+
```sh
27+
ls -la
28+
```
29+
- [ ] Non-task in 'code_block_in_task' level-2-b
30+
- [ ] Non-task in 'code_block_in_task' level-1-b
31+
```sh
32+
ls -la
33+
```
34+
- [ ] Non-task in 'code_block_in_task' level-1-c

tests/Obsidian/AllCacheSampleData.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import callout_custom from './__test_data__/callout_custom.json';
77
import callout_labelled from './__test_data__/callout_labelled.json';
88
import callouts_nested_issue_2890_labelled from './__test_data__/callouts_nested_issue_2890_labelled.json';
99
import callouts_nested_issue_2890_unlabelled from './__test_data__/callouts_nested_issue_2890_unlabelled.json';
10+
import code_block_in_task from './__test_data__/code_block_in_task.json';
1011
import comments_html_style from './__test_data__/comments_html_style.json';
1112
import comments_markdown_style from './__test_data__/comments_markdown_style.json';
1213
import docs_sample_for_explain_query_file_defaults from './__test_data__/docs_sample_for_explain_query_file_defaults.json';
@@ -84,6 +85,7 @@ export function allCacheSampleData() {
8485
callout_labelled,
8586
callouts_nested_issue_2890_labelled,
8687
callouts_nested_issue_2890_unlabelled,
88+
code_block_in_task,
8789
comments_html_style,
8890
comments_markdown_style,
8991
docs_sample_for_explain_query_file_defaults,

0 commit comments

Comments
 (0)