Skip to content
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

"Lists should be surrounded by blank lines" inside code block #1453

Closed
charisk opened this issue Dec 16, 2024 · 1 comment
Closed

"Lists should be surrounded by blank lines" inside code block #1453

charisk opened this issue Dec 16, 2024 · 1 comment

Comments

@charisk
Copy link

charisk commented Dec 16, 2024

A "Lists should be surrounded by blank lines" error is raised for the line line 2 (L2) in the following code block, even though it's not raised for a very similar code block further up the file.

L1:   <pre><code class="javascript">(function() {
L2:   	cp.execFileSync('rm',  ['-rf', path.join(__dirname, "temp")]); // GOOD
L3:   	cp.execSync(<strong>'rm -rf ' + path.join(__dirname, "temp")</strong>); // BAD

I would not expect this to trigger an error.

You can see an example of this in github/vscode-codeql#3872 where CI is failing when running markdown lint on this file, specifically on this line.

This has started happening with v0.15.0.

@DavidAnson
Copy link
Owner

@DavidAnson DavidAnson added the bug label Dec 16, 2024
@DavidAnson DavidAnson transferred this issue from DavidAnson/markdownlint-cli2 Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants