Skip to content

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

@charisk

Description

@charisk

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions