code-notes icon indicating copy to clipboard operation
code-notes copied to clipboard

<-- TODO: xxx--> comments in Markdown not working

Open berezovskyi opened this issue 7 years ago • 0 comments

ᐅ 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]
    }
  }
]

berezovskyi avatar Mar 23 '17 11:03 berezovskyi