From c2541468ffb80c51efdbee934a9d2e37550aeb67 Mon Sep 17 00:00:00 2001 From: David Anson Date: Tue, 24 Nov 2020 13:46:23 -0800 Subject: [PATCH] Exclude file in test-repos scenario due to table parsing (breaking) change in markdown-it v12. --- test/markdownlint-test-repos.js | 8 +++++++- test/reversed-link-issue-with-markdownlint-12.md | 11 +++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 test/reversed-link-issue-with-markdownlint-12.md diff --git a/test/markdownlint-test-repos.js b/test/markdownlint-test-repos.js index a81c142a..4c283c1b 100644 --- a/test/markdownlint-test-repos.js +++ b/test/markdownlint-test-repos.js @@ -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); diff --git a/test/reversed-link-issue-with-markdownlint-12.md b/test/reversed-link-issue-with-markdownlint-12.md new file mode 100644 index 00000000..bd78a80c --- /dev/null +++ b/test/reversed-link-issue-with-markdownlint-12.md @@ -0,0 +1,11 @@ +# reversed-link-issue-with-markdownlint-12 + +|Pattern|Description| +|-------------|-----------------| +|`(?:\["'\](?<1>\[^"'\]*)["']|(?<1>\S+))`|...| + +{MD011:5} + +|Pattern|Description| +|-------------|-----------------| +|`(?:\["'\](?<1>\[^"'\]*)["']\|(?<1>\S+))`|...|