code-notes
code-notes copied to clipboard
<-- TODO: xxx--> comments in Markdown not working
ᐅ notes -i '*.md'
- paper-draft.md [1 message]: [Line 225] ✓ TODO: yyy
The source code contains:
<!--TODO: xxx-->
// TODO: yyy
[//]: # (TODO zzz)
I think the support for this would require refactoring messageChecks.js
to support File Formats that can be presents under multiple Extensions. Each File Format may have different Regex for each Check. Sketch:
formats = [
{
title: "Markdown",
extensions: ["markdown", "mdown", "mkdn", "md", "mkd", "mdwn", "mdtxt", "mdtext", "text", "Rmd"],
regex: {
todo: [/<!--\s*TODO:([\s\S]*?)-->/gi]
}
}
]