Tasks code block keeps unfolding
Opened this issue · 2 comments
Hi,
I use Obsidian 1.6.5 with CodeBlock Customizer and Tasks plugins. I have this weird behaviour in Live Preview when tasks codeblock keeps filling up with duplicated values from the tasks query and then cleaning up the duplicated values. It happens only when the current file also has some tasks.
I have disabled tasks in CodeBlock Customizer but the issue is still there.
![Screenshot 2024-07-05 at 11 43 06](https://private-user-images.githubusercontent.com/55538308/346098911-1dee92bb-be0e-4722-bb2c-46e31db860c1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4MjYyNDcsIm5iZiI6MTcyMTgyNTk0NywicGF0aCI6Ii81NTUzODMwOC8zNDYwOTg5MTEtMWRlZTkyYmItYmUwZS00NzIyLWJiMmMtNDZlMzFkYjg2MGMxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI0VDEyNTkwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM5MGMzZmE3ZGI4NzJkNjlmZTA4YjdmYTM5ZWZiNTVmYmMzMTFjZWE0ZmU2MGFhMTFmMmNhODc5NzI3ZTQ4NjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Cob4gJVBl3KAHSKfZ7Y-PQwBUXaPHbJMCUAw-xS5Xls)
To reproduce:
Step1
Create a file Tasks with
- [ ] Task 1
- [ ] Task 2
- [x] Task 3
- [ ] Task 4
- [x] Task 6
- [ ] Task 7
Step2
Create an Example file with
Tasks
\```tasks
path includes Tasks
\```
# About yesterday
Some summary
- 1
- 2
# Plan for today
- [ ]
and try to open it in Live Preview. If you'll try to add anything into "About yesterday" list, you will see the tasks codeblock flicking.
When I disable CodeBlock Customizer plugin, this issue no longer happens.
Screen.Recording.2024-07-05.at.11.57.50.mov
haha thanks @mugiwara85
Pls do note that the issue happens only there are tasks in the note itself (like in my example if I remove the task from 'Plan for today' section, the issue is gone.
I haven't noticed any other issues with the tasks plugin but I tried another plugin for code blocks (Code Styler
) and I ran into exactly same issue, so i guess your plugin and that one share some common root cause.