-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MD018 false positive inside code blocks using hl_lines #176
Comments
Also seeing this with pymdown-extensions Tabbed Fences: ```c tab="C"
#include <stdio.h>
int main (int argc, char *argv[])
{
int i;
for (i=0; i <6; i+=1) {
printf("%d\n", i);
}
return 0;
}
``` Which gives:
At a guess the way code blocks are detected doesn't handle extra stuff on the end of the line. |
This seems to be an issue with the underlying parser Kramdown, specifically this regex Which will match:
but not
|
I'm hitting this issue in hash comments inside any code blocks for shell and python like this: # comment
somecommand # comment
somecode Where the comments are at the top like this I've moved them out of the code blocks so there is no precedeing command1 &&
command2
# this one is really necessary to work around github issue xxx...
command3 ||
command4 eg:
I don't want to disable |
Dont quite understand this yet, but this example false positives
https://gist.github.com/jacobrosenthal/e49f7d225b40b2bcc59a4f5d029776bc
The text was updated successfully, but these errors were encountered: