Works on Dataview task objects (for example dervied from nextActions.js) and toggles status, tags and scheduled dates of markdown tasks. Preserves Obsidian block IDs at the end of lines.
Toggles tasks done using the executeToggleTaskDoneCommand API of the Tasks plugin for Obsidian.