mt40 / vscode-todo-parser

TodoParser extension for vscode. Parse TODOs in your project.
http://kantlove.github.io/vscode-todo-parser
MIT License
54 stars 13 forks source link

Does it works with Markdown? #75

Open ghostku opened 6 years ago

ghostku commented 6 years ago

They say it works with Markdown. But I can't deal with it, none of my TODOs in Markdown shown. Does it work? Can anyone show an example?

Thanks

GitMensch commented 6 years ago

Is there a defined way of specifying comments in Markdown nowadays or do you use the "empty link" option to fake a comment?

According to https://github.com/kantlove/vscode-todo-parser/blob/master/src/types/LanguageType.ts this plugin uses the Java Regex for Markdown, which is defined at https://github.com/kantlove/vscode-todo-parser/blob/master/src/const/RegexStrings.ts as /*+([\s\S]*?)*/|//([^\r\n]+) so it should work when using a double slash (can't get it to work) or the /* */ notation, but I think there's a . missing in the first part of the regex...