Exclude file in test-repos scenario due to table parsing (breaking) change in markdown-it v12.

This commit is contained in:
David Anson 2020-11-24 13:46:23 -08:00
parent 85563c3e63
commit c2541468ff
2 changed files with 18 additions and 1 deletions

View file

@ -101,7 +101,13 @@ if (existsSync(dotnetDocsDir)) {
const rootDir = dotnetDocsDir;
const globPatterns = [
join(rootDir, "**/*.md"),
"!" + join(rootDir, "samples/**/*.md")
"!" + join(rootDir, "samples/**/*.md"),
// A table parsing change in markdown-it v12 causes a new issue here
"!" + join(
rootDir,
"docs/standard/base-types/" +
"regular-expression-example-scanning-for-hrefs.md"
)
];
const configPath = join(rootDir, ".markdownlint.json");
lintTestRepo(test, globPatterns, configPath);

View file

@ -0,0 +1,11 @@
# reversed-link-issue-with-markdownlint-12
|Pattern|Description|
|-------------|-----------------|
|`(?:\["'\](?<1>\[^"'\]*)["']|(?<1>\S+))`|...|
{MD011:5}
|Pattern|Description|
|-------------|-----------------|
|`(?:\["'\](?<1>\[^"'\]*)["']\|(?<1>\S+))`|...|