Skip to content

Commit b13c172

Browse files
authored
Markdownlint: Fix TOP009 errors in existing custom rule test files (#30060)
* Fix TOP009 errors in existing custom rule test files * Disable TOP008 for TOP006 test file Test file should showcase TOP006 only. TOP008 violation is intentional here, just don't flag it due to error noise.
1 parent e12be04 commit b13c172

File tree

11 files changed

+15
-13
lines changed

11 files changed

+15
-13
lines changed

markdownlint/TOP001_descriptiveLinkTextLabels/tests/TOP001_test.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Text content
66

77
This section contains a general overview of topics that you will learn in this lesson.
88

9-
- LO item
9+
- LO item.
1010

1111
### The following links should NOT be flagged
1212

markdownlint/TOP002_noCodeInHeadings/tests/TOP002_test.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Text content.
66

77
This section contains a general overview of topics that you will learn in this lesson.
88

9-
- LO item
9+
- LO item.
1010

1111
### This heading should NOT be flagged
1212

markdownlint/TOP003_defaultSectionContent/tests/TOP003_test_content-around-list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This section contains a general overview of topics that you will learn in this l
88

99
Some additional content before the list that should flag an error.
1010

11-
- LO item
11+
- LO item.
1212

1313
Some additional content after the list that should flag an error.
1414

markdownlint/TOP003_defaultSectionContent/tests/TOP003_test_incorrect-content.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Text content
66

77
This section has the wrong text following the heading that should flag an error.
88

9-
- LO item
9+
- LO item.
1010

1111
### Custom section
1212

markdownlint/TOP003_defaultSectionContent/tests/TOP003_test_missing-wrapper.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Text content
66

77
This section contains a general overview of topics that you will learn in this lesson.
88

9-
- LO item
9+
- LO item.
1010

1111
### Custom section
1212

markdownlint/TOP003_defaultSectionContent/tests/TOP003_test_nested-and-ordered-list.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Text content
66

77
This section contains a general overview of topics that you will learn in this lesson.
88

9-
- An item
10-
- A nested item that should flag an error
11-
- Unnested list item
9+
- An item.
10+
- A nested item that should flag an error.
11+
- Unnested list item.
1212

1313
### Custom section
1414

markdownlint/TOP004_lessonHeadings/tests/TOP004_test_valid.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This file should not be flagged with any errors.
66

77
This section contains a general overview of topics that you will learn in this lesson.
88

9-
- LO item
9+
- LO item.
1010

1111
### Custom section
1212

markdownlint/TOP005_blanksAroundMultilineHtmlTags/tests/TOP005_test.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This file should flag with TOP005 errors, and no other linting errors.
66

77
This section contains a general overview of topics that you will learn in this lesson.
88

9-
- LO item
9+
- LO item.
1010

1111
### Assignment
1212

markdownlint/TOP006_fullFencedCodeLanguage/tests/TOP006_test.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This file should flag with TOP006 errors, and no other linting errors.
66

77
This section contains a general overview of topics that you will learn in this lesson.
88

9-
- LO item
9+
- LO item.
1010

1111
### Assignment
1212

@@ -22,9 +22,11 @@ Valid div due to each tag being surrounded by blank lines.
2222
console.log("This code block should flag an error as it uses "js" instead of "javascript".");
2323
```
2424

25+
<!-- markdownlint-disable TOP008 -->
2526
~~~js
2627
console.log("The rule will still flag even if tilde delimiters are used");
2728
~~~
29+
<!-- markdownlint-enable TOP008 -->
2830

2931
```javascript
3032
console.log("This code block is valid as it uses the appropriate full name.");

markdownlint/TOP007_useMarkdownLinks/tests/TOP007_test.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This file should flag with TOP007 errors, and no other linting errors.
66

77
This section contains a general overview of topics that you will learn in this lesson.
88

9-
- LO item
9+
- LO item.
1010

1111
### Assignment
1212

0 commit comments

Comments
 (0)