Skip to content

Commit

Permalink
docs: Update example to show caller must save the markdown
Browse files Browse the repository at this point in the history
Fixes #3287.
  • Loading branch information
claremacrae committed Feb 24, 2025
1 parent 0b56a68 commit fd8fc06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/Advanced/Tasks Api.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ const taskLine = '- [ ] This is a task 📅 2024-04-24';

const result = tasksApi.executeToggleTaskDoneCommand(taskLine, sourceFile.path);

// Do whatever you want with the returned value.
// It's just a string containing the Markdown for the toggled task.
console.log(result); // "- [x] This is a task 📅 2024-04-24 ✅ 2024-04-23"
```

Expand Down

0 comments on commit fd8fc06

Please sign in to comment.