Markdown-todoThis extension adds a simple deadline functionality to markdown lists. Simply add a date in the format dd/mm/yyyy before any markdown list to see the days remaining until that date (also warn when the deadline approaches). If the deadline is approaching, you get a squiggly line under the date. The remaining days are always appended to the end of the dates' line. You can also add times above any group of lists for more granular control. Each timed sections are evaluated separately. Adding a TODO Section
Everything under a deadline is grouped as one. To begin a new deadline, simply add another date before the next list. Result:Combining With Existing Markdown Syntaxes
Result (left vscode, right rendered markdown)The diagnostics was made to work in vscode. It just parses the markdown file and gives you diagnostics using vscode's LSP API. If you preview it (as seen on the right), you won't see all the deadline diagnostics and reports. But because the dates syntax are basically just markdown, if you render it you'll still see the dates, just not the reported diagnostics. Ending a Section EarlyDue to the nature of the syntax, once you add a date, the parser will try to match any lists below it as a part of the deadline. Doesn't matter if it's already a new topic and you're writing about something else 300+ lines below the date. To explicitly end a date section, you can add
ResultCodeblocksIf you a date is found to be inside a codeblock, it is ignored. ``` 23/07/2023
Skipping a SectionIf you want to skip a section for whatever reasons -- maybe you got lazy and wanted to just not do the thing, but want don't want to delete the list -- you can add a
ResultLong Example |