Closed tu2-atmanand closed 1 month ago
Ohh my bad, i figures out, that problem was happening with only 5 tasks, because same tasks were there in the same file at bottom, i created this file long back to arrange my document, and pasted the same 5 lines of document again.
Alright the issue has been resolved, I am not facing the issue, it has been tested. The function is working fine.
When i marked one taks complete, the following content got written in the MD file :
Also when i edited the task with the original content :
So the conclusion is, somehow the
updateTaskInFile
function is not seems to be able to detect the old task title properly and this issue is only coming for above type of tasks, so, if there is characters like the square brackets in the Task Title, then i think something is failing in detecting the oldTask inside the MD file.