Skip to content

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

@berezovskyi

Description

@berezovskyi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions