@alexlit/lint-kit 190.0.1 → 191.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/package.json +1 -1
  2. package/packages/config-eslint/package.json +3 -3
  3. package/packages/config-markdownlint/package.json +2 -2
  4. package/packages/config-markdownlint/node_modules/ansi-regex/index.d.ts +0 -33
  5. package/packages/config-markdownlint/node_modules/ansi-regex/index.js +0 -14
  6. package/packages/config-markdownlint/node_modules/ansi-regex/license +0 -9
  7. package/packages/config-markdownlint/node_modules/ansi-regex/package.json +0 -61
  8. package/packages/config-markdownlint/node_modules/ansi-regex/readme.md +0 -66
  9. package/packages/config-markdownlint/node_modules/markdownlint/CHANGELOG.md +0 -529
  10. package/packages/config-markdownlint/node_modules/markdownlint/CONTRIBUTING.md +0 -92
  11. package/packages/config-markdownlint/node_modules/markdownlint/LICENSE +0 -21
  12. package/packages/config-markdownlint/node_modules/markdownlint/README.md +0 -1112
  13. package/packages/config-markdownlint/node_modules/markdownlint/doc/CustomRules.md +0 -194
  14. package/packages/config-markdownlint/node_modules/markdownlint/doc/Prettier.md +0 -27
  15. package/packages/config-markdownlint/node_modules/markdownlint/doc/ReleaseProcess.md +0 -20
  16. package/packages/config-markdownlint/node_modules/markdownlint/doc/Rules.md +0 -2858
  17. package/packages/config-markdownlint/node_modules/markdownlint/doc/md001.md +0 -51
  18. package/packages/config-markdownlint/node_modules/markdownlint/doc/md003.md +0 -59
  19. package/packages/config-markdownlint/node_modules/markdownlint/doc/md004.md +0 -50
  20. package/packages/config-markdownlint/node_modules/markdownlint/doc/md005.md +0 -53
  21. package/packages/config-markdownlint/node_modules/markdownlint/doc/md007.md +0 -52
  22. package/packages/config-markdownlint/node_modules/markdownlint/doc/md009.md +0 -50
  23. package/packages/config-markdownlint/node_modules/markdownlint/doc/md010.md +0 -62
  24. package/packages/config-markdownlint/node_modules/markdownlint/doc/md011.md +0 -30
  25. package/packages/config-markdownlint/node_modules/markdownlint/doc/md012.md +0 -38
  26. package/packages/config-markdownlint/node_modules/markdownlint/doc/md013.md +0 -58
  27. package/packages/config-markdownlint/node_modules/markdownlint/doc/md014.md +0 -54
  28. package/packages/config-markdownlint/node_modules/markdownlint/doc/md018.md +0 -27
  29. package/packages/config-markdownlint/node_modules/markdownlint/doc/md019.md +0 -28
  30. package/packages/config-markdownlint/node_modules/markdownlint/doc/md020.md +0 -29
  31. package/packages/config-markdownlint/node_modules/markdownlint/doc/md021.md +0 -31
  32. package/packages/config-markdownlint/node_modules/markdownlint/doc/md022.md +0 -67
  33. package/packages/config-markdownlint/node_modules/markdownlint/doc/md023.md +0 -33
  34. package/packages/config-markdownlint/node_modules/markdownlint/doc/md024.md +0 -44
  35. package/packages/config-markdownlint/node_modules/markdownlint/doc/md025.md +0 -49
  36. package/packages/config-markdownlint/node_modules/markdownlint/doc/md026.md +0 -40
  37. package/packages/config-markdownlint/node_modules/markdownlint/doc/md027.md +0 -32
  38. package/packages/config-markdownlint/node_modules/markdownlint/doc/md028.md +0 -44
  39. package/packages/config-markdownlint/node_modules/markdownlint/doc/md029.md +0 -100
  40. package/packages/config-markdownlint/node_modules/markdownlint/doc/md030.md +0 -82
  41. package/packages/config-markdownlint/node_modules/markdownlint/doc/md031.md +0 -50
  42. package/packages/config-markdownlint/node_modules/markdownlint/doc/md032.md +0 -55
  43. package/packages/config-markdownlint/node_modules/markdownlint/doc/md033.md +0 -33
  44. package/packages/config-markdownlint/node_modules/markdownlint/doc/md034.md +0 -55
  45. package/packages/config-markdownlint/node_modules/markdownlint/doc/md035.md +0 -44
  46. package/packages/config-markdownlint/node_modules/markdownlint/doc/md036.md +0 -45
  47. package/packages/config-markdownlint/node_modules/markdownlint/doc/md037.md +0 -37
  48. package/packages/config-markdownlint/node_modules/markdownlint/doc/md038.md +0 -52
  49. package/packages/config-markdownlint/node_modules/markdownlint/doc/md039.md +0 -21
  50. package/packages/config-markdownlint/node_modules/markdownlint/doc/md040.md +0 -52
  51. package/packages/config-markdownlint/node_modules/markdownlint/doc/md041.md +0 -64
  52. package/packages/config-markdownlint/node_modules/markdownlint/doc/md042.md +0 -38
  53. package/packages/config-markdownlint/node_modules/markdownlint/doc/md043.md +0 -87
  54. package/packages/config-markdownlint/node_modules/markdownlint/doc/md044.md +0 -45
  55. package/packages/config-markdownlint/node_modules/markdownlint/doc/md045.md +0 -48
  56. package/packages/config-markdownlint/node_modules/markdownlint/doc/md046.md +0 -40
  57. package/packages/config-markdownlint/node_modules/markdownlint/doc/md047.md +0 -34
  58. package/packages/config-markdownlint/node_modules/markdownlint/doc/md048.md +0 -42
  59. package/packages/config-markdownlint/node_modules/markdownlint/doc/md049.md +0 -36
  60. package/packages/config-markdownlint/node_modules/markdownlint/doc/md050.md +0 -35
  61. package/packages/config-markdownlint/node_modules/markdownlint/doc/md051.md +0 -117
  62. package/packages/config-markdownlint/node_modules/markdownlint/doc/md052.md +0 -52
  63. package/packages/config-markdownlint/node_modules/markdownlint/doc/md053.md +0 -38
  64. package/packages/config-markdownlint/node_modules/markdownlint/doc/md054.md +0 -100
  65. package/packages/config-markdownlint/node_modules/markdownlint/doc/md055.md +0 -55
  66. package/packages/config-markdownlint/node_modules/markdownlint/doc/md056.md +0 -37
  67. package/packages/config-markdownlint/node_modules/markdownlint/doc/md058.md +0 -48
  68. package/packages/config-markdownlint/node_modules/markdownlint/doc/md059.md +0 -33
  69. package/packages/config-markdownlint/node_modules/markdownlint/doc/md060.md +0 -130
  70. package/packages/config-markdownlint/node_modules/markdownlint/helpers/LICENSE +0 -21
  71. package/packages/config-markdownlint/node_modules/markdownlint/helpers/README.md +0 -29
  72. package/packages/config-markdownlint/node_modules/markdownlint/helpers/helpers.cjs +0 -695
  73. package/packages/config-markdownlint/node_modules/markdownlint/helpers/micromark-helpers.cjs +0 -332
  74. package/packages/config-markdownlint/node_modules/markdownlint/helpers/package.json +0 -26
  75. package/packages/config-markdownlint/node_modules/markdownlint/helpers/shared.cjs +0 -16
  76. package/packages/config-markdownlint/node_modules/markdownlint/lib/cache.mjs +0 -80
  77. package/packages/config-markdownlint/node_modules/markdownlint/lib/configuration-strict.d.ts +0 -2417
  78. package/packages/config-markdownlint/node_modules/markdownlint/lib/configuration.d.ts +0 -8
  79. package/packages/config-markdownlint/node_modules/markdownlint/lib/constants.mjs +0 -14
  80. package/packages/config-markdownlint/node_modules/markdownlint/lib/defer-require.cjs +0 -18
  81. package/packages/config-markdownlint/node_modules/markdownlint/lib/exports-async.d.mts +0 -1
  82. package/packages/config-markdownlint/node_modules/markdownlint/lib/exports-async.mjs +0 -3
  83. package/packages/config-markdownlint/node_modules/markdownlint/lib/exports-promise.d.mts +0 -1
  84. package/packages/config-markdownlint/node_modules/markdownlint/lib/exports-promise.mjs +0 -3
  85. package/packages/config-markdownlint/node_modules/markdownlint/lib/exports-sync.d.mts +0 -1
  86. package/packages/config-markdownlint/node_modules/markdownlint/lib/exports-sync.mjs +0 -3
  87. package/packages/config-markdownlint/node_modules/markdownlint/lib/exports.d.mts +0 -30
  88. package/packages/config-markdownlint/node_modules/markdownlint/lib/exports.mjs +0 -33
  89. package/packages/config-markdownlint/node_modules/markdownlint/lib/markdownit.cjs +0 -171
  90. package/packages/config-markdownlint/node_modules/markdownlint/lib/markdownlint.d.mts +0 -615
  91. package/packages/config-markdownlint/node_modules/markdownlint/lib/markdownlint.mjs +0 -1592
  92. package/packages/config-markdownlint/node_modules/markdownlint/lib/md001.mjs +0 -32
  93. package/packages/config-markdownlint/node_modules/markdownlint/lib/md003.mjs +0 -47
  94. package/packages/config-markdownlint/node_modules/markdownlint/lib/md004.mjs +0 -72
  95. package/packages/config-markdownlint/node_modules/markdownlint/lib/md005.mjs +0 -69
  96. package/packages/config-markdownlint/node_modules/markdownlint/lib/md007.mjs +0 -84
  97. package/packages/config-markdownlint/node_modules/markdownlint/lib/md009.mjs +0 -96
  98. package/packages/config-markdownlint/node_modules/markdownlint/lib/md010.mjs +0 -78
  99. package/packages/config-markdownlint/node_modules/markdownlint/lib/md011.mjs +0 -56
  100. package/packages/config-markdownlint/node_modules/markdownlint/lib/md012.mjs +0 -40
  101. package/packages/config-markdownlint/node_modules/markdownlint/lib/md013.mjs +0 -91
  102. package/packages/config-markdownlint/node_modules/markdownlint/lib/md014.mjs +0 -47
  103. package/packages/config-markdownlint/node_modules/markdownlint/lib/md018.mjs +0 -43
  104. package/packages/config-markdownlint/node_modules/markdownlint/lib/md019-md021.mjs +0 -77
  105. package/packages/config-markdownlint/node_modules/markdownlint/lib/md020.mjs +0 -68
  106. package/packages/config-markdownlint/node_modules/markdownlint/lib/md022.mjs +0 -103
  107. package/packages/config-markdownlint/node_modules/markdownlint/lib/md023.mjs +0 -37
  108. package/packages/config-markdownlint/node_modules/markdownlint/lib/md024.mjs +0 -45
  109. package/packages/config-markdownlint/node_modules/markdownlint/lib/md025.mjs +0 -45
  110. package/packages/config-markdownlint/node_modules/markdownlint/lib/md026.mjs +0 -46
  111. package/packages/config-markdownlint/node_modules/markdownlint/lib/md027.mjs +0 -50
  112. package/packages/config-markdownlint/node_modules/markdownlint/lib/md028.mjs +0 -39
  113. package/packages/config-markdownlint/node_modules/markdownlint/lib/md029.mjs +0 -84
  114. package/packages/config-markdownlint/node_modules/markdownlint/lib/md030.mjs +0 -57
  115. package/packages/config-markdownlint/node_modules/markdownlint/lib/md031.mjs +0 -61
  116. package/packages/config-markdownlint/node_modules/markdownlint/lib/md032.mjs +0 -78
  117. package/packages/config-markdownlint/node_modules/markdownlint/lib/md033.mjs +0 -46
  118. package/packages/config-markdownlint/node_modules/markdownlint/lib/md034.mjs +0 -92
  119. package/packages/config-markdownlint/node_modules/markdownlint/lib/md035.mjs +0 -23
  120. package/packages/config-markdownlint/node_modules/markdownlint/lib/md036.mjs +0 -55
  121. package/packages/config-markdownlint/node_modules/markdownlint/lib/md037.mjs +0 -94
  122. package/packages/config-markdownlint/node_modules/markdownlint/lib/md038.mjs +0 -73
  123. package/packages/config-markdownlint/node_modules/markdownlint/lib/md039.mjs +0 -59
  124. package/packages/config-markdownlint/node_modules/markdownlint/lib/md040.mjs +0 -32
  125. package/packages/config-markdownlint/node_modules/markdownlint/lib/md041.mjs +0 -71
  126. package/packages/config-markdownlint/node_modules/markdownlint/lib/md042.mjs +0 -58
  127. package/packages/config-markdownlint/node_modules/markdownlint/lib/md043.mjs +0 -72
  128. package/packages/config-markdownlint/node_modules/markdownlint/lib/md044.mjs +0 -110
  129. package/packages/config-markdownlint/node_modules/markdownlint/lib/md045.mjs +0 -61
  130. package/packages/config-markdownlint/node_modules/markdownlint/lib/md046.mjs +0 -31
  131. package/packages/config-markdownlint/node_modules/markdownlint/lib/md047.mjs +0 -28
  132. package/packages/config-markdownlint/node_modules/markdownlint/lib/md048.mjs +0 -47
  133. package/packages/config-markdownlint/node_modules/markdownlint/lib/md049-md050.mjs +0 -115
  134. package/packages/config-markdownlint/node_modules/markdownlint/lib/md051.mjs +0 -173
  135. package/packages/config-markdownlint/node_modules/markdownlint/lib/md052.mjs +0 -40
  136. package/packages/config-markdownlint/node_modules/markdownlint/lib/md053.mjs +0 -60
  137. package/packages/config-markdownlint/node_modules/markdownlint/lib/md054.mjs +0 -122
  138. package/packages/config-markdownlint/node_modules/markdownlint/lib/md055.mjs +0 -72
  139. package/packages/config-markdownlint/node_modules/markdownlint/lib/md056.mjs +0 -50
  140. package/packages/config-markdownlint/node_modules/markdownlint/lib/md058.mjs +0 -57
  141. package/packages/config-markdownlint/node_modules/markdownlint/lib/md059.mjs +0 -71
  142. package/packages/config-markdownlint/node_modules/markdownlint/lib/md060.mjs +0 -209
  143. package/packages/config-markdownlint/node_modules/markdownlint/lib/micromark-parse.mjs +0 -337
  144. package/packages/config-markdownlint/node_modules/markdownlint/lib/micromark-types.d.mts +0 -11
  145. package/packages/config-markdownlint/node_modules/markdownlint/lib/node-imports-browser.mjs +0 -22
  146. package/packages/config-markdownlint/node_modules/markdownlint/lib/node-imports-node.mjs +0 -11
  147. package/packages/config-markdownlint/node_modules/markdownlint/lib/parse-configuration.mjs +0 -47
  148. package/packages/config-markdownlint/node_modules/markdownlint/lib/resolve-module.cjs +0 -52
  149. package/packages/config-markdownlint/node_modules/markdownlint/lib/resolve-module.d.cts +0 -34
  150. package/packages/config-markdownlint/node_modules/markdownlint/lib/rules.mjs +0 -122
  151. package/packages/config-markdownlint/node_modules/markdownlint/lib/types.d.mts +0 -13
  152. package/packages/config-markdownlint/node_modules/markdownlint/package.json +0 -120
  153. package/packages/config-markdownlint/node_modules/markdownlint/schema/.markdownlint.jsonc +0 -349
  154. package/packages/config-markdownlint/node_modules/markdownlint/schema/.markdownlint.yaml +0 -310
  155. package/packages/config-markdownlint/node_modules/markdownlint/schema/ValidatingConfiguration.md +0 -26
  156. package/packages/config-markdownlint/node_modules/markdownlint/schema/markdownlint-config-schema-strict.json +0 -5138
  157. package/packages/config-markdownlint/node_modules/markdownlint/schema/markdownlint-config-schema.json +0 -5143
  158. package/packages/config-markdownlint/node_modules/markdownlint/style/all.json +0 -5
  159. package/packages/config-markdownlint/node_modules/markdownlint/style/cirosantilli.json +0 -22
  160. package/packages/config-markdownlint/node_modules/markdownlint/style/prettier.json +0 -27
  161. package/packages/config-markdownlint/node_modules/markdownlint/style/relaxed.json +0 -12
  162. package/packages/config-markdownlint/node_modules/string-width/index.d.ts +0 -39
  163. package/packages/config-markdownlint/node_modules/string-width/index.js +0 -203
  164. package/packages/config-markdownlint/node_modules/string-width/license +0 -9
  165. package/packages/config-markdownlint/node_modules/string-width/package.json +0 -65
  166. package/packages/config-markdownlint/node_modules/string-width/readme.md +0 -66
  167. package/packages/config-markdownlint/node_modules/strip-ansi/index.d.ts +0 -15
  168. package/packages/config-markdownlint/node_modules/strip-ansi/index.js +0 -19
  169. package/packages/config-markdownlint/node_modules/strip-ansi/license +0 -9
  170. package/packages/config-markdownlint/node_modules/strip-ansi/package.json +0 -59
  171. package/packages/config-markdownlint/node_modules/strip-ansi/readme.md +0 -37
@@ -1,67 +0,0 @@
1
- # `MD022` - Headings should be surrounded by blank lines
2
-
3
- Tags: `blank_lines`, `headings`
4
-
5
- Aliases: `blanks-around-headings`
6
-
7
- Parameters:
8
-
9
- - `include_front_matter`: Include front matter content (`boolean`, default
10
- `false`)
11
- - `lines_above`: Blank lines above heading (`integer|integer[]`, default `1`)
12
- - `lines_below`: Blank lines below heading (`integer|integer[]`, default `1`)
13
-
14
- Fixable: Some violations can be fixed by tooling
15
-
16
- This rule is triggered when headings (any style) are either not preceded or not
17
- followed by at least one blank line:
18
-
19
- ```markdown
20
- # Heading 1
21
- Some text
22
-
23
- Some more text
24
- ## Heading 2
25
- ```
26
-
27
- To fix this, ensure that all headings have a blank line both before and after
28
- (except where the heading is at the beginning or end of the document):
29
-
30
- ```markdown
31
- # Heading 1
32
-
33
- Some text
34
-
35
- Some more text
36
-
37
- ## Heading 2
38
- ```
39
-
40
- The `lines_above` and `lines_below` parameters can be used to specify a
41
- different number of blank lines (including `0`) above or below each heading.
42
- If the value `-1` is used for either parameter, any number of blank lines is
43
- allowed. To customize the number of lines above or below each heading level
44
- individually, specify a `number[]` where values correspond to heading levels
45
- 1-6 (in order).
46
-
47
- Notes: If `lines_above` or `lines_below` are configured to require more than one
48
- blank line, [MD012/no-multiple-blanks](md012.md) should also be customized. This
49
- rule checks for *at least* as many blank lines as specified; any extra blank
50
- lines are ignored.
51
-
52
- By default, [YAML](https://wikipedia.org/wiki/YAML) front matter is ignored, so
53
- the following document reports no violations:
54
-
55
- ```markdown
56
- ---
57
- title: Title
58
- ---
59
- ## Heading
60
- ```
61
-
62
- To require the configured number of blank lines between front matter content and
63
- a document's first heading, set the `include_front_matter` parameter to `true`.
64
-
65
- Rationale: Aside from aesthetic reasons, some parsers, including `kramdown`,
66
- will not parse headings that don't have a blank line before, and will parse them
67
- as regular text.
@@ -1,33 +0,0 @@
1
- # `MD023` - Headings must start at the beginning of the line
2
-
3
- Tags: `headings`, `spaces`
4
-
5
- Aliases: `heading-start-left`
6
-
7
- Fixable: Some violations can be fixed by tooling
8
-
9
- This rule is triggered when a heading is indented by one or more spaces:
10
-
11
- ```markdown
12
- Some text
13
-
14
- # Indented heading
15
- ```
16
-
17
- To fix this, ensure that all headings start at the beginning of the line:
18
-
19
- ```markdown
20
- Some text
21
-
22
- # Heading
23
- ```
24
-
25
- Note that scenarios like block quotes "indent" the start of the line, so the
26
- following is also correct:
27
-
28
- ```markdown
29
- > # Heading in Block Quote
30
- ```
31
-
32
- Rationale: Headings that don't start at the beginning of the line will not be
33
- parsed as headings, and will instead appear as regular text.
@@ -1,44 +0,0 @@
1
- # `MD024` - Multiple headings with the same content
2
-
3
- Tags: `headings`
4
-
5
- Aliases: `no-duplicate-heading`
6
-
7
- Parameters:
8
-
9
- - `siblings_only`: Only check sibling headings (`boolean`, default `false`)
10
-
11
- This rule is triggered if there are multiple headings in the document that have
12
- the same text:
13
-
14
- ```markdown
15
- # Some text
16
-
17
- ## Some text
18
- ```
19
-
20
- To fix this, ensure that the content of each heading is different:
21
-
22
- ```markdown
23
- # Some text
24
-
25
- ## Some more text
26
- ```
27
-
28
- If the parameter `siblings_only` is set to `true`, duplication is allowed for
29
- headings with different parents (as is common in changelogs):
30
-
31
- ```markdown
32
- # Change log
33
-
34
- ## 1.0.0
35
-
36
- ### Features
37
-
38
- ## 2.0.0
39
-
40
- ### Features
41
- ```
42
-
43
- Rationale: Some Markdown parsers generate anchors for headings based on the
44
- heading name; headings with the same content can cause problems with that.
@@ -1,49 +0,0 @@
1
- # `MD025` - Multiple top-level headings in the same document
2
-
3
- Tags: `headings`
4
-
5
- Aliases: `single-h1`, `single-title`
6
-
7
- Parameters:
8
-
9
- - `front_matter_title`: RegExp for matching title in front matter (`string`,
10
- default `^\s*title\s*[:=]`)
11
- - `level`: Heading level (`integer`, default `1`)
12
-
13
- This rule is triggered when a top-level heading is in use (the first line of
14
- the file is an h1 heading), and more than one h1 heading is in use in the
15
- document:
16
-
17
- ```markdown
18
- # Top level heading
19
-
20
- # Another top-level heading
21
- ```
22
-
23
- To fix, structure your document so there is a single h1 heading that is
24
- the title for the document. Subsequent headings must be
25
- lower-level headings (h2, h3, etc.):
26
-
27
- ```markdown
28
- # Title
29
-
30
- ## Heading
31
-
32
- ## Another heading
33
- ```
34
-
35
- Note: The `level` parameter can be used to change the top-level (ex: to h2) in
36
- cases where an h1 is added externally.
37
-
38
- If [YAML](https://wikipedia.org/wiki/YAML) front matter is present and
39
- contains a `title` property (commonly used with blog posts), this rule treats
40
- that as a top level heading and will report a violation for any subsequent
41
- top-level headings. To use a different property name in the front matter,
42
- specify the text of a regular expression via the `front_matter_title` parameter.
43
- To disable the use of front matter by this rule, specify `""` for
44
- `front_matter_title`.
45
-
46
- Rationale: A top-level heading is an h1 on the first line of the file, and
47
- serves as the title for the document. If this convention is in use, then there
48
- can not be more than one title for the document, and the entire document should
49
- be contained within this heading.
@@ -1,40 +0,0 @@
1
- # `MD026` - Trailing punctuation in heading
2
-
3
- Tags: `headings`
4
-
5
- Aliases: `no-trailing-punctuation`
6
-
7
- Parameters:
8
-
9
- - `punctuation`: Punctuation characters (`string`, default `.,;:!。,;:!`)
10
-
11
- Fixable: Some violations can be fixed by tooling
12
-
13
- This rule is triggered on any heading that has one of the specified normal or
14
- full-width punctuation characters as the last character in the line:
15
-
16
- ```markdown
17
- # This is a heading.
18
- ```
19
-
20
- To fix this, remove the trailing punctuation:
21
-
22
- ```markdown
23
- # This is a heading
24
- ```
25
-
26
- Note: The `punctuation` parameter can be used to specify what characters count
27
- as punctuation at the end of a heading. For example, you can change it to
28
- `".,;:"` to allow headings that end with an exclamation point. `?` is
29
- allowed by default because of how common it is in headings of FAQ-style
30
- documents. Setting the `punctuation` parameter to `""` allows all characters -
31
- and is equivalent to disabling the rule.
32
-
33
- Note: The trailing semicolon of [HTML entity references][html-entity-references]
34
- like `©`, `©`, and `©` is ignored by this rule.
35
-
36
- Rationale: Headings are not meant to be full sentences. More information:
37
- [Punctuation at the end of headers][end-punctuation].
38
-
39
- [end-punctuation]: https://cirosantilli.com/markdown-style-guide#punctuation-at-the-end-of-headers
40
- [html-entity-references]: https://wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references
@@ -1,32 +0,0 @@
1
- # `MD027` - Multiple spaces after blockquote symbol
2
-
3
- Tags: `blockquote`, `indentation`, `whitespace`
4
-
5
- Aliases: `no-multiple-space-blockquote`
6
-
7
- Parameters:
8
-
9
- - `list_items`: Include list items (`boolean`, default `true`)
10
-
11
- Fixable: Some violations can be fixed by tooling
12
-
13
- This rule is triggered when blockquotes have more than one space after the
14
- blockquote (`>`) symbol:
15
-
16
- ```markdown
17
- > This is a blockquote with bad indentation
18
- > there should only be one.
19
- ```
20
-
21
- To fix, remove any extraneous space:
22
-
23
- ```markdown
24
- > This is a blockquote with correct
25
- > indentation.
26
- ```
27
-
28
- Inferring intended list indentation within a blockquote can be challenging;
29
- setting the `list_items` parameter to `false` disables this rule for ordered
30
- and unordered list items.
31
-
32
- Rationale: Consistent formatting makes it easier to understand a document.
@@ -1,44 +0,0 @@
1
- # `MD028` - Blank line inside blockquote
2
-
3
- Tags: `blockquote`, `whitespace`
4
-
5
- Aliases: `no-blanks-blockquote`
6
-
7
- This rule is triggered when two blockquote blocks are separated by nothing
8
- but a blank line:
9
-
10
- ```markdown
11
- > This is a blockquote
12
- > which is immediately followed by
13
-
14
- > this blockquote. In some cases,
15
- > these may be merged into one blockquote.
16
- ```
17
-
18
- To fix this, ensure that consecutive blockquotes have text (or an HTML comment)
19
- in between:
20
-
21
- ```markdown
22
- > This is a blockquote.
23
-
24
- This is paragraph text.
25
-
26
- > This is a second blockquote.
27
-
28
- <!-- This is an HTML comment -->
29
-
30
- > This is a third blockquote.
31
- ```
32
-
33
- If they are meant to be a single quote, add the blockquote symbol at the
34
- beginning of the blank line:
35
-
36
- ```markdown
37
- > This is a blockquote.
38
- >
39
- > This is the same blockquote.
40
- ```
41
-
42
- Rationale: Some Markdown parsers will treat two blockquotes separated by one
43
- or more blank lines as the same blockquote, while others will treat them as
44
- separate blockquotes.
@@ -1,100 +0,0 @@
1
- # `MD029` - Ordered list item prefix
2
-
3
- Tags: `ol`
4
-
5
- Aliases: `ol-prefix`
6
-
7
- Parameters:
8
-
9
- - `style`: List style (`string`, default `one_or_ordered`, values `one` /
10
- `one_or_ordered` / `ordered` / `zero`)
11
-
12
- Fixable: Some violations can be fixed by tooling
13
-
14
- This rule is triggered for ordered lists that do not either start with '1.' or
15
- do not have a prefix that increases in numerical order (depending on the
16
- configured style). The less-common pattern of using '0.' as a first prefix or
17
- for all prefixes is also supported.
18
-
19
- Example valid list if the style is configured as 'one':
20
-
21
- ```markdown
22
- 1. Do this.
23
- 1. Do that.
24
- 1. Done.
25
- ```
26
-
27
- Examples of valid lists if the style is configured as 'ordered':
28
-
29
- ```markdown
30
- 1. Do this.
31
- 2. Do that.
32
- 3. Done.
33
- ```
34
-
35
- ```markdown
36
- 0. Do this.
37
- 1. Do that.
38
- 2. Done.
39
- ```
40
-
41
- All three examples are valid when the style is configured as 'one_or_ordered'.
42
-
43
- Example valid list if the style is configured as 'zero':
44
-
45
- ```markdown
46
- 0. Do this.
47
- 0. Do that.
48
- 0. Done.
49
- ```
50
-
51
- Example invalid list for all styles:
52
-
53
- ```markdown
54
- 1. Do this.
55
- 3. Done.
56
- ```
57
-
58
- This rule supports 0-prefixing ordered list items for uniform indentation:
59
-
60
- ```markdown
61
- ...
62
- 08. Item
63
- 09. Item
64
- 10. Item
65
- 11. Item
66
- ...
67
- ```
68
-
69
- Note: This rule will report violations for cases like the following where an
70
- improperly-indented code block (or similar) appears between two list items and
71
- "breaks" the list in two:
72
-
73
- <!-- markdownlint-disable code-fence-style -->
74
-
75
- ~~~markdown
76
- 1. First list
77
-
78
- ```text
79
- Code block
80
- ```
81
-
82
- 1. Second list
83
- ~~~
84
-
85
- The fix is to indent the code block so it becomes part of the preceding list
86
- item as intended:
87
-
88
- ~~~markdown
89
- 1. First list
90
-
91
- ```text
92
- Code block
93
- ```
94
-
95
- 2. Still first list
96
- ~~~
97
-
98
- <!-- markdownlint-restore -->
99
-
100
- Rationale: Consistent formatting makes it easier to understand a document.
@@ -1,82 +0,0 @@
1
- # `MD030` - Spaces after list markers
2
-
3
- Tags: `ol`, `ul`, `whitespace`
4
-
5
- Aliases: `list-marker-space`
6
-
7
- Parameters:
8
-
9
- - `ol_multi`: Spaces for multi-line ordered list items (`integer`, default `1`)
10
- - `ol_single`: Spaces for single-line ordered list items (`integer`, default
11
- `1`)
12
- - `ul_multi`: Spaces for multi-line unordered list items (`integer`, default
13
- `1`)
14
- - `ul_single`: Spaces for single-line unordered list items (`integer`, default
15
- `1`)
16
-
17
- Fixable: Some violations can be fixed by tooling
18
-
19
- This rule checks for the number of spaces between a list marker (e.g. '`-`',
20
- '`*`', '`+`' or '`1.`') and the text of the list item.
21
-
22
- The number of spaces checked for depends on the document style in use, but the
23
- default is 1 space after any list marker:
24
-
25
- ```markdown
26
- * Foo
27
- * Bar
28
- * Baz
29
-
30
- 1. Foo
31
- 1. Bar
32
- 1. Baz
33
-
34
- 1. Foo
35
- * Bar
36
- 1. Baz
37
- ```
38
-
39
- A document style may change the number of spaces after unordered list items
40
- and ordered list items independently, as well as based on whether the content
41
- of every item in the list consists of a single paragraph or multiple
42
- paragraphs (including sub-lists and code blocks).
43
-
44
- For example, the style guide at
45
- <https://cirosantilli.com/markdown-style-guide#spaces-after-list-marker>
46
- specifies that 1 space after the list marker should be used if every item in
47
- the list fits within a single paragraph, but to use 2 or 3 spaces (for ordered
48
- and unordered lists respectively) if there are multiple paragraphs of content
49
- inside the list:
50
-
51
- ```markdown
52
- * Foo
53
- * Bar
54
- * Baz
55
- ```
56
-
57
- vs.
58
-
59
- ```markdown
60
- * Foo
61
-
62
- Second paragraph
63
-
64
- * Bar
65
- ```
66
-
67
- or
68
-
69
- ```markdown
70
- 1. Foo
71
-
72
- Second paragraph
73
-
74
- 1. Bar
75
- ```
76
-
77
- To fix this, ensure the correct number of spaces are used after the list marker
78
- for your selected document style.
79
-
80
- Rationale: Violations of this rule can lead to improperly rendered content.
81
-
82
- Note: See [Prettier.md](Prettier.md) for compatibility information.
@@ -1,50 +0,0 @@
1
- # `MD031` - Fenced code blocks should be surrounded by blank lines
2
-
3
- Tags: `blank_lines`, `code`
4
-
5
- Aliases: `blanks-around-fences`
6
-
7
- Parameters:
8
-
9
- - `list_items`: Include list items (`boolean`, default `true`)
10
-
11
- Fixable: Some violations can be fixed by tooling
12
-
13
- This rule is triggered when fenced code blocks are either not preceded or not
14
- followed by a blank line:
15
-
16
- ````markdown
17
- Some text
18
- ```
19
- Code block
20
- ```
21
-
22
- ```
23
- Another code block
24
- ```
25
- Some more text
26
- ````
27
-
28
- To fix this, ensure that all fenced code blocks have a blank line both before
29
- and after (except where the block is at the beginning or end of the document):
30
-
31
- ````markdown
32
- Some text
33
-
34
- ```
35
- Code block
36
- ```
37
-
38
- ```
39
- Another code block
40
- ```
41
-
42
- Some more text
43
- ````
44
-
45
- Set the `list_items` parameter to `false` to disable this rule for list items.
46
- Disabling this behavior for lists can be useful if it is necessary to create a
47
- [tight](https://spec.commonmark.org/0.29/#tight) list containing a code fence.
48
-
49
- Rationale: Aside from aesthetic reasons, some parsers, including kramdown, will
50
- not parse fenced code blocks that don't have blank lines before and after them.
@@ -1,55 +0,0 @@
1
- # `MD032` - Lists should be surrounded by blank lines
2
-
3
- Tags: `blank_lines`, `bullet`, `ol`, `ul`
4
-
5
- Aliases: `blanks-around-lists`
6
-
7
- Fixable: Some violations can be fixed by tooling
8
-
9
- This rule is triggered when lists (of any kind) are either not preceded or not
10
- followed by a blank line:
11
-
12
- ```markdown
13
- Some text
14
- * List item
15
- * List item
16
-
17
- 1. List item
18
- 2. List item
19
- ***
20
- ```
21
-
22
- In the first case above, text immediately precedes the unordered list. In the
23
- second case above, a thematic break immediately follows the ordered list. To fix
24
- violations of this rule, ensure that all lists have a blank line both before and
25
- after (except when the list is at the very beginning or end of the document):
26
-
27
- ```markdown
28
- Some text
29
-
30
- * List item
31
- * List item
32
-
33
- 1. List item
34
- 2. List item
35
-
36
- ***
37
- ```
38
-
39
- Note that the following case is **not** a violation of this rule:
40
-
41
- ```markdown
42
- 1. List item
43
- More item 1
44
- 2. List item
45
- More item 2
46
- ```
47
-
48
- Although it is not indented, the text "More item 2" is referred to as a
49
- [lazy continuation line][lazy-continuation] and considered part of the second
50
- list item.
51
-
52
- Rationale: In addition to aesthetic reasons, some parsers, including kramdown,
53
- will not parse lists that don't have blank lines before and after them.
54
-
55
- [lazy-continuation]: https://spec.commonmark.org/0.30/#lazy-continuation-line
@@ -1,33 +0,0 @@
1
- # `MD033` - Inline HTML
2
-
3
- Tags: `html`
4
-
5
- Aliases: `no-inline-html`
6
-
7
- Parameters:
8
-
9
- - `allowed_elements`: Allowed elements (`string[]`, default `[]`)
10
- - `table_allowed_elements`: Allowed elements in tables (`string[]`, default
11
- `[]`)
12
-
13
- This rule is triggered whenever raw HTML is used in a Markdown document:
14
-
15
- ```markdown
16
- <h1>Inline HTML heading</h1>
17
- ```
18
-
19
- To fix this, use 'pure' Markdown instead of including raw HTML:
20
-
21
- ```markdown
22
- # Markdown heading
23
- ```
24
-
25
- To allow specific HTML elements anywhere in Markdown content, set the
26
- `allowed_elements` parameter to a list of HTML element names. To allow a
27
- specific set of HTML elements within Markdown tables, set the
28
- `table_allowed_elements` parameter to a list of HTML element names. This can be
29
- used to permit the use of `<br>`-style line breaks only within Markdown tables.
30
-
31
- Rationale: Raw HTML is allowed in Markdown, but this rule is included for
32
- those who want their documents to only include "pure" Markdown, or for those
33
- who are rendering Markdown documents into something other than HTML.
@@ -1,55 +0,0 @@
1
- # `MD034` - Bare URL used
2
-
3
- Tags: `links`, `url`
4
-
5
- Aliases: `no-bare-urls`
6
-
7
- Fixable: Some violations can be fixed by tooling
8
-
9
- This rule is triggered whenever a URL or email address appears without
10
- surrounding angle brackets:
11
-
12
- ```markdown
13
- For more info, visit https://www.example.com/ or email user@example.com.
14
- ```
15
-
16
- To fix this, add angle brackets around the URL or email address:
17
-
18
- ```markdown
19
- For more info, visit <https://www.example.com/> or email <user@example.com>.
20
- ```
21
-
22
- If a URL or email address contains non-ASCII characters, it may be not be
23
- handled as intended even when angle brackets are present. In such cases,
24
- [percent-encoding](https://wikipedia.org/wiki/Percent-encoding) can be used
25
- to comply with the required syntax for URL and email.
26
-
27
- Note: To include a bare URL or email without it being converted into a link,
28
- wrap it in a code span:
29
-
30
- ```markdown
31
- Not a clickable link: `https://www.example.com`
32
- ```
33
-
34
- Note: The following scenario does not trigger this rule because it could be a
35
- shortcut link:
36
-
37
- ```markdown
38
- [https://www.example.com]
39
- ```
40
-
41
- Note: The following syntax triggers this rule because the nested link could be
42
- a shortcut link (which takes precedence):
43
-
44
- ```markdown
45
- [text [shortcut] text](https://example.com)
46
- ```
47
-
48
- To avoid this, escape both inner brackets:
49
-
50
- ```markdown
51
- [link \[text\] link](https://example.com)
52
- ```
53
-
54
- Rationale: Without angle brackets, a bare URL or email isn't converted into a
55
- link by some Markdown parsers.