1
+ {
2
+ // Example markdownlint JSON(C) configuration with all properties set to their default value
3
+
4
+ // Default state for all rules
5
+ "default" : true ,
6
+
7
+ // Path to configuration file to extend
8
+ "extends" : null ,
9
+
10
+ // MD001/heading-increment/header-increment - Heading levels should only increment by one level at a time
11
+ "MD001" : true ,
12
+
13
+ // MD003/heading-style/header-style - Heading style
14
+ "MD003" : {
15
+ // Heading style
16
+ "style" : " atx"
17
+ },
18
+
19
+ // MD004/ul-style - Unordered list style
20
+ "MD004" : {
21
+ // List style
22
+ "style" : " dash"
23
+ },
24
+
25
+ // MD005/list-indent - Inconsistent indentation for list items at the same level
26
+ "MD005" : true ,
27
+
28
+ // MD007/ul-indent - Unordered list indentation
29
+ "MD007" : {
30
+ // Spaces for indent
31
+ "indent" : 2 ,
32
+ // Whether to indent the first level of the list
33
+ "start_indented" : false ,
34
+ // Spaces for first level indent (when start_indented is set)
35
+ "start_indent" : 2
36
+ },
37
+
38
+ // MD009/no-trailing-spaces - Trailing spaces
39
+ "MD009" : {
40
+ // Spaces for line break
41
+ "br_spaces" : 2 ,
42
+ // Allow spaces for empty lines in list items
43
+ "list_item_empty_lines" : false ,
44
+ // Include unnecessary breaks
45
+ "strict" : false
46
+ },
47
+
48
+ // MD010/no-hard-tabs - Hard tabs
49
+ "MD010" : false ,
50
+
51
+ // MD011/no-reversed-links - Reversed link syntax
52
+ "MD011" : true ,
53
+
54
+ // MD012/no-multiple-blanks - Multiple consecutive blank lines
55
+ "MD012" : true ,
56
+
57
+ // MD013/line-length - Line length
58
+ "MD013" : {
59
+ // Number of characters
60
+ "line_length" : 80 ,
61
+ // Number of characters for headings
62
+ "heading_line_length" : 80 ,
63
+ // Number of characters for code blocks
64
+ "code_block_line_length" : 80 ,
65
+ // Include code blocks
66
+ "code_blocks" : true ,
67
+ // Include tables
68
+ "tables" : true ,
69
+ // Include headings
70
+ "headings" : true ,
71
+ // Include headings
72
+ "headers" : true ,
73
+ // Strict length checking
74
+ "strict" : false ,
75
+ // Stern length checking
76
+ "stern" : false
77
+ },
78
+
79
+ // MD014/commands-show-output - Dollar signs used before commands without showing output
80
+ "MD014" : true ,
81
+
82
+ // MD018/no-missing-space-atx - No space after hash on atx style heading
83
+ "MD018" : true ,
84
+
85
+ // MD019/no-multiple-space-atx - Multiple spaces after hash on atx style heading
86
+ "MD019" : true ,
87
+
88
+ // MD020/no-missing-space-closed-atx - No space inside hashes on closed atx style heading
89
+ "MD020" : false ,
90
+
91
+ // MD021/no-multiple-space-closed-atx - Multiple spaces inside hashes on closed atx style heading
92
+ "MD021" : false ,
93
+
94
+ // MD022/blanks-around-headings/blanks-around-headers - Headings should be surrounded by blank lines
95
+ "MD022" : {
96
+ // Blank lines above heading
97
+ "lines_above" : 1 ,
98
+ // Blank lines below heading
99
+ "lines_below" : 1
100
+ },
101
+
102
+ // MD023/heading-start-left/header-start-left - Headings must start at the beginning of the line
103
+ "MD023" : true ,
104
+
105
+ // MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content
106
+ "MD024" : {
107
+ // Only check sibling headings
108
+ "allow_different_nesting" : false ,
109
+ // Only check sibling headings
110
+ "siblings_only" : true
111
+ },
112
+
113
+ // MD025/single-title/single-h1 - Multiple top-level headings in the same document
114
+ "MD025" : {
115
+ // Heading level
116
+ "level" : 1 ,
117
+ // RegExp for matching title in front matter
118
+ "front_matter_title" : " "
119
+ },
120
+
121
+ // MD026/no-trailing-punctuation - Trailing punctuation in heading
122
+ "MD026" : {
123
+ // Punctuation characters
124
+ "punctuation" : " .,;:!。,;:!"
125
+ },
126
+
127
+ // MD027/no-multiple-space-blockquote - Multiple spaces after blockquote symbol
128
+ "MD027" : true ,
129
+
130
+ // MD028/no-blanks-blockquote - Blank line inside blockquote
131
+ "MD028" : true ,
132
+
133
+ // MD029/ol-prefix - Ordered list item prefix
134
+ "MD029" : {
135
+ // List style
136
+ "style" : " one"
137
+ },
138
+
139
+ // MD030/list-marker-space - Spaces after list markers
140
+ "MD030" : {
141
+ // Spaces for single-line unordered list items
142
+ "ul_single" : 1 ,
143
+ // Spaces for single-line ordered list items
144
+ "ol_single" : 1 ,
145
+ // Spaces for multi-line unordered list items
146
+ "ul_multi" : 1 ,
147
+ // Spaces for multi-line ordered list items
148
+ "ol_multi" : 1
149
+ },
150
+
151
+ // MD031/blanks-around-fences - Fenced code blocks should be surrounded by blank lines
152
+ "MD031" : {
153
+ // Include list items
154
+ "list_items" : true
155
+ },
156
+
157
+ // MD032/blanks-around-lists - Lists should be surrounded by blank lines
158
+ "MD032" : true ,
159
+
160
+ // MD033/no-inline-html - Inline HTML
161
+ "MD033" : {
162
+ // Allowed elements
163
+ "allowed_elements" : []
164
+ },
165
+
166
+ // MD034/no-bare-urls - Bare URL used
167
+ // TODO remove all bare URLS from docs
168
+ // We should not have bare urls in the docs
169
+ // Once done, set this to true
170
+ "MD034" : false ,
171
+
172
+ // MD035/hr-style - Horizontal rule style
173
+ "MD035" : {
174
+ // Horizontal rule style
175
+ "style" : " consistent"
176
+ },
177
+
178
+ // MD036/no-emphasis-as-heading/no-emphasis-as-header - Emphasis used instead of a heading
179
+ "MD036" : {
180
+ // Punctuation characters
181
+ "punctuation" : " .,;:!?。,;:!?"
182
+ },
183
+
184
+ // MD037/no-space-in-emphasis - Spaces inside emphasis markers
185
+ "MD037" : true ,
186
+
187
+ // MD038/no-space-in-code - Spaces inside code span elements
188
+ "MD038" : true ,
189
+
190
+ // MD039/no-space-in-links - Spaces inside link text
191
+ "MD039" : true ,
192
+
193
+ // MD040/fenced-code-language - Fenced code blocks should have a language specified
194
+ "MD040" : true ,
195
+
196
+ // MD041/first-line-heading/first-line-h1 - First line in a file should be a top-level heading
197
+ "MD041" : {
198
+ // Heading level
199
+ "level" : 1 ,
200
+ // RegExp for matching title in front matter
201
+ "front_matter_title" : " ^\\ s*title\\ s*[:=]"
202
+ },
203
+
204
+ // MD042/no-empty-links - No empty links
205
+ "MD042" : true ,
206
+
207
+ // MD043/required-headings/required-headers - Required heading structure
208
+ // TODO
209
+ // We may want to utilize this rule, not sure what the struct would be
210
+ "MD043" : {
211
+ // List of headings
212
+ "headings" : [],
213
+ // List of headings
214
+ "headers" : []
215
+ },
216
+
217
+ // MD044/proper-names - Proper names should have the correct capitalization
218
+ // TODO
219
+ // Determine if we want to use this,
220
+ // May cause issues
221
+ "MD044" : {
222
+ // List of proper names
223
+ "names" : [],
224
+ // Include code blocks
225
+ "code_blocks" : true ,
226
+ // Include HTML elements
227
+ "html_elements" : true
228
+ },
229
+
230
+ // MD045/no-alt-text - Images should have alternate text (alt text)
231
+ "MD045" : true ,
232
+
233
+ // MD046/code-block-style - Code block style
234
+ "MD046" : {
235
+ // Block style
236
+ "style" : " fenced"
237
+ },
238
+
239
+ // MD047/single-trailing-newline - Files should end with a single newline character
240
+ "MD047" : true ,
241
+
242
+ // MD048/code-fence-style - Code fence style
243
+ "MD048" : {
244
+ // Code fence style
245
+ "style" : " backtick"
246
+ },
247
+
248
+ // MD049/emphasis-style - Emphasis style should be consistent
249
+ "MD049" : {
250
+ // Emphasis style should be consistent
251
+ "style" : " underscore"
252
+ },
253
+
254
+ // MD050/strong-style - Strong style should be consistent
255
+ "MD050" : {
256
+ // Strong style should be consistent
257
+ "style" : " asterisk"
258
+ },
259
+
260
+ // MD051/link-fragments - Link fragments should be valid
261
+ "MD051" : true ,
262
+
263
+ // MD052/reference-links-images - Reference links and images should use a label that is defined
264
+ "MD052" : true ,
265
+
266
+ // MD053/link-image-reference-definitions - Link and image reference definitions should be needed
267
+ "MD053" : {
268
+ // Ignored definitions
269
+ "ignored_definitions" : [
270
+ " //"
271
+ ]
272
+ }
273
+ }
0 commit comments