-
Notifications
You must be signed in to change notification settings - Fork 0
/
.markdownlint.json
1921 lines (1874 loc) · 50.8 KB
/
.markdownlint.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
// THANKS
// https://gitlab.com/thesmiley1/dotfiles-public/-/blob/4ae6bb329e73ab80d48e0596899c1a8e3bacc0ab/home/.config/markdownlint/config
// https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
// # Rules
//
// This document contains a description of all rules, what they are checking
// for, as well as an examples of documents that break the rule and corrected
// versions of the examples. Any rule whose heading is ~~struck through~~ is
// deprecated, but still provided for backward-compatibility.
// ## MD001 - Heading levels should only increment by one level at a time
//
// Tags: headings, headers
//
// Aliases: heading-increment, header-increment
//
// This rule is triggered when you skip heading levels in a markdown document,
// for example:
//
// ```markdown
// # Heading 1
//
// ### Heading 3
//
// We skipped out a 2nd level heading in this document
// ```
//
// When using multiple heading levels, nested headings should increase by only
// one level at a time:
//
// ```markdown
// # Heading 1
//
// ## Heading 2
//
// ### Heading 3
//
// #### Heading 4
//
// ## Another Heading 2
//
// ### Another Heading 3
// ```
//
// Rationale: Headings represent the structure of a document and can be
// confusing when skipped - especially for accessibility scenarios. More
// information: <https://www.w3.org/WAI/tutorials/page-structure/headings/>.
"MD001": true,
// ## ~~MD002 - First heading should be a top level heading~~
//
// Tags: headings, headers
//
// Aliases: first-heading-h1, first-header-h1
//
// Parameters: level (number; default 1)
//
// > Note: *MD002 has been DEPRECATED and is disabled by default.*
// > [MD041/first-line-heading](#md041) offers an improved implementation.
//
// This rule is intended to ensure document headings start at the top level
// and is triggered when the first heading in the document isn't a h1 heading:
//
// ```markdown
// ## This isn't a H1 heading
//
// ### Another heading
// ```
//
// The first heading in the document should be a h1 heading:
//
// ```markdown
// # Start with a H1 heading
//
// ## Then use an H2 for subsections
// ```
//
// Note: The `level` parameter can be used to change the top level (ex: to h2)
// in cases where a h1 is added externally.
//
// Rationale: The top level heading often acts as the title of a document.
// More information:
// <https://cirosantilli.com/markdown-style-guide#top-level-header>.
"MD002": false,
// ## MD003 - Heading style
//
// Tags: headings, headers
//
// Aliases: heading-style, header-style
//
// Parameters: style ("consistent", "atx", "atx_closed", "setext",
// "setext_with_atx", "setext_with_atx_closed"; default "consistent")
//
// This rule is triggered when different heading styles (atx, setext, and
// 'closed' atx) are used in the same document:
//
// ```markdown
// # ATX style H1
//
// ## Closed ATX style H2 ##
//
// Setext style H1
// ===============
// ```
//
// Be consistent with the style of heading used in a document:
//
// ```markdown
// # ATX style H1
//
// ## ATX style H2
// ```
//
// The setext_with_atx and setext_with_atx_closed doc styles allow atx-style
// headings of level 3 or more in documents with setext style headings:
//
// ```markdown
// Setext style H1
// ===============
//
// Setext style H2
// ---------------
//
// ### ATX style H3
// ```
//
// Note: the configured heading style can be a specific style to use (atx,
// atx_closed, setext, setext_with_atx, setext_with_atx_closed), or simply
// require that the usage be consistent within the document.
//
// Rationale: Consistent formatting makes it easier to understand a document.
"MD003": {
"style": "atx"
},
// ## MD004 - Unordered list style
//
// Tags: bullet, ul
//
// Aliases: ul-style
//
// Parameters: style ("consistent", "asterisk", "plus", "dash", "sublist";
// default "consistent")
//
// This rule is triggered when the symbols used in the document for unordered
// list items do not match the configured unordered list style:
//
// ```markdown
// * Item 1
// + Item 2
// - Item 3
// ```
//
// To fix this issue, use the configured style for list items throughout the
// document:
//
// ```markdown
// * Item 1
// * Item 2
// * Item 3
// ```
//
// The configured list style can be a specific symbol to use (asterisk, plus,
// dash), can require that usage be consistent within the document, or can
// require that each sublist have a consistent symbol that is different from
// its parent list.
//
// For example, the following is valid for the `sublist` style because the
// outer-most indent uses asterisk, the middle indent uses plus, and the
// inner-most indent uses dash:
//
// ```markdown
// * Item 1
// + Item 2
// - Item 3
// + Item 4
// * Item 4
// + Item 5
// ```
//
// Rationale: Consistent formatting makes it easier to understand a document.
"MD004": {
"style": "dash"
},
// ## MD005 - Inconsistent indentation for list items at the same level
//
// Tags: bullet, ul, indentation
//
// Aliases: list-indent
//
// Fixable: Most violations can be fixed by tooling
//
// This rule is triggered when list items are parsed as being at the same
// level, but don't have the same indentation:
//
// ```markdown
// * Item 1
// * Nested Item 1
// * Nested Item 2
// * A misaligned item
// ```
//
// Usually this rule will be triggered because of a typo. Correct the
// indentation for the list to fix it:
//
// ```markdown
// * Item 1
// * Nested Item 1
// * Nested Item 2
// * Nested Item 3
// ```
//
// Sequentially-ordered list markers are usually left-aligned such that all
// items have the same starting column:
//
// ```markdown
// ...
// 8. Item
// 9. Item
// 10. Item
// 11. Item
// ...
// ```
//
// This rule also supports right-alignment of list markers such that all items
// have the same ending column:
//
// ```markdown
// ...
// 8. Item
// 9. Item
// 10. Item
// 11. Item
// ...
// ```
//
// Rationale: Violations of this rule can lead to improperly rendered content.
"MD005": true,
// ## ~~MD006 - Consider starting bulleted lists at the beginning of the line~~
//
// Tags: bullet, ul, indentation
//
// Aliases: ul-start-left
//
// Fixable: Most violations can be fixed by tooling
//
// > Note: *MD006 has been DEPRECATED in favor of MD007.*
//
// This rule is triggered when top level lists don't start at the beginning of
// a line:
//
// ```markdown
// Some text
//
// * List item
// * List item
// ```
//
// To fix, ensure that top level list items are not indented:
//
// ```markdown
// Some test
//
// * List item
// * List item
// ```
//
// Note: This rule is triggered for the following scenario because the
// unordered sublist is not recognized as such by the parser. Not being nested
// 3 characters as required by the outer ordered list, it creates a top-level
// unordered list instead.
//
// ```markdown
// 1. List item
// - List item
// - List item
// 1. List item
// ```
//
// Rationale: Starting lists at the beginning of the line means that nested
// list items can all be indented by the same amount when an editor's indent
// function or the tab key is used to indent. Starting a list 1 space in means
// that the indent of the first nested list is less than the indent of the
// second level (3 characters if you use 4 space tabs, or 1 character if you
// use 2 space tabs).
"MD006": false,
// ## MD007 - Unordered list indentation
//
// Tags: bullet, ul, indentation
//
// Aliases: ul-indent
//
// Parameters: indent, start_indented (number; default 2, boolean; default
// false)
//
// Fixable: Most violations can be fixed by tooling
//
// This rule is triggered when list items are not indented by the configured
// number of spaces (default: 2).
//
// Example:
//
// ```markdown
// * List item
// * Nested list item indented by 3 spaces
// ```
//
// Corrected Example:
//
// ```markdown
// * List item
// * Nested list item indented by 2 spaces
// ```
//
// Note: This rule applies to a sublist only if its parent lists are all also
// unordered (otherwise, extra indentation of ordered lists interferes with
// the rule).
//
// The `start_indented` parameter allows the first level of lists to be
// indented by the configured number of spaces rather than starting at zero
// (the inverse of MD006).
//
// Rationale: Indenting by 2 spaces allows the content of a nested list to be
// in line with the start of the content of the parent list when a single
// space is used after the list marker. Indenting by 4 spaces is consistent
// with code blocks and simpler for editors to implement. Additionally, this
// can be a compatibility issue for multi-markdown parsers, which require a
// 4-space indents. More information:
// <https://cirosantilli.com/markdown-style-guide#indentation-of-content-inside-lists>
// and
// <http://support.markedapp.com/discussions/problems/21-sub-lists-not-indenting>.
"MD007": {
"indent": 2,
"start_indented": false
},
// ## MD009 - Trailing spaces
//
// Tags: whitespace
//
// Aliases: no-trailing-spaces
//
// Parameters: br_spaces, list_item_empty_lines, strict (number; default 2,
// boolean; default false, boolean; default false)
//
// Fixable: Most violations can be fixed by tooling
//
// This rule is triggered on any lines that end with unexpected whitespace. To
// fix this, remove the trailing space from the end of the line.
//
// The `br_spaces` parameter allows an exception to this rule for a specific
// number of trailing spaces, typically used to insert an explicit line break.
// The default value allows 2 spaces to indicate a hard break (\<br> element).
//
// Note: You must set `br_spaces` to a value >= 2 for this parameter to take
// effect. Setting `br_spaces` to 1 behaves the same as 0, disallowing any
// trailing spaces.
// By default, this rule will not trigger when the allowed number of spaces is
// used, even when it doesn't create a hard break (for example, at the end of
// a paragraph). To report such instances as well, set the `strict` parameter
// to `true`.
//
// ```markdown
// Text text text
// text[2 spaces]
// ```
//
// Using spaces to indent blank lines inside a list item is usually not
// necessary, but some parsers require it. Set the `list_item_empty_lines`
// parameter to `true` to allow this (even when `strict` is `true`):
//
// ```markdown
// - list item text
// [2 spaces]
// list item text
// ```
//
// Rationale: Except when being used to create a line break, trailing
// whitespace has no purpose and does not affect the rendering of content.
"MD009": {
"br_spaces": 0,
"list_item_empty_lines": false,
"strict": true
},
// ## MD010 - Hard tabs
//
// Tags: whitespace, hard_tab
//
// Aliases: no-hard-tabs
//
// Parameters: code_blocks (boolean; default true)
//
// Fixable: Most violations can be fixed by tooling
//
// This rule is triggered by any lines that contain hard tab characters
// instead of using spaces for indentation. To fix this, replace any hard tab
// characters with spaces instead.
//
// Example:
//
// ```markdown
// Some text
//
// * hard tab character used to indent the list item
// ```
//
// Corrected example:
//
// ```markdown
// Some text
//
// * Spaces used to indent the list item instead
// ```
//
// You have the option to exclude this rule for code blocks. To do so, set the
// `code_blocks` parameter to `false`. Code blocks are included by default
// since handling of tabs by tools is often inconsistent (ex: using 4 vs. 8
// spaces).
//
// Rationale: Hard tabs are often rendered inconsistently by different editors
// and can be harder to work with than spaces.
"MD010": {
"code_blocks": true
},
// ## MD011 - Reversed link syntax
//
// Tags: links
//
// Aliases: no-reversed-links
//
// Fixable: Most violations can be fixed by tooling
//
// This rule is triggered when text that appears to be a link is encountered,
// but where the syntax appears to have been reversed (the `[]` and `()` are
// reversed):
//
// ```markdown
// (Incorrect link syntax)[https://www.example.com/]
// ```
//
// To fix this, swap the `[]` and `()` around:
//
// ```markdown
// [Correct link syntax](https://www.example.com/)
// ```
//
// Note: [Markdown Extra](https://en.wikipedia.org/wiki/Markdown_Extra)-style
// footnotes do not trigger this rule:
//
// ```markdown
// For (example)[^1]
// ```
//
// Rationale: Reversed links are not rendered as usable links.
"MD011": true,
// ## MD012 - Multiple consecutive blank lines
//
// Tags: whitespace, blank_lines
//
// Aliases: no-multiple-blanks
//
// Parameters: maximum (number; default 1)
//
// Fixable: Most violations can be fixed by tooling
//
// This rule is triggered when there are multiple consecutive blank lines in
// the document:
//
// ```markdown
// Some text here
//
//
// Some more text here
// ```
//
// To fix this, delete the offending lines:
//
// ```markdown
// Some text here
//
// Some more text here
// ```
//
// Note: this rule will not be triggered if there are multiple consecutive
// blank lines inside code blocks.
//
// Note: The `maximum` parameter can be used to configure the maximum number
// of consecutive blank lines.
//
// Rationale: Except in a code block, blank lines serve no purpose and do not
// affect the rendering of content.
"MD012": {
"maximum": 2
},
// ## MD013 - Line length
//
// Tags: line_length
//
// Aliases: line-length
//
// Parameters: line_length, heading_line_length, code_block_line_length,
// code_blocks, tables, headings, headers, strict, stern (number; default 80
// for *_length, boolean; default true (except strict/stern which default
// false))
//
// > If `headings` is not provided, `headers` (DEPRECATED) will be used.
//
// This rule is triggered when there are lines that are longer than the
// configured `line_length` (default: 80 characters). To fix this, split the
// line up into multiple lines. To set a different maximum length for
// headings, use `heading_line_length`. To set a different maximum length for
// code blocks, use `code_block_line_length`
//
// This rule has an exception when there is no whitespace beyond the
// configured line length. This allows you to still include items such as long
// URLs without being forced to break them in the middle. To disable this
// exception, set the `strict` parameter to `true` to report an issue when any
// line is too long. To warn for lines that are too long and could be fixed
// but allow lines without spaces, set the `stern` parameter to `true`.
//
// For example (assuming normal behavior):
//
// ```markdown
// IF THIS LINE IS THE MAXIMUM LENGTH
// This line is okay because there are-no-spaces-beyond-that-length
// And this line is a violation because there are
// This-line-is-also-okay-because-there-are-no-spaces
// ```
//
// In `strict` or `stern` modes, the two middle lines above are a violation.
// The third line is a violation in `strict` mode, but allowed in `stern`
// mode.
//
// You have the option to exclude this rule for code blocks, tables, or
// headings. To do so, set the `code_blocks`, `tables`, or `headings`
// parameter(s) to false.
//
// Code blocks are included in this rule by default since it is often a
// requirement for document readability, and tentatively compatible with code
// rules. Still, some languages do not lend themselves to short lines.
//
// Rationale: Extremely long lines can be difficult to work with in some
// editors. More information:
// <https://cirosantilli.com/markdown-style-guide#line-wrapping>.
"MD013": {
"line_length": 80,
"heading_line_length": 80,
"code_block_line_length": 80,
"code_blocks": true,
"tables": true,
"headings": true,
"strict": false,
"stern": true
},
// ## MD014 - Dollar signs used before commands without showing output
//
// Tags: code
//
// Aliases: commands-show-output
//
// Fixable: Most violations can be fixed by tooling
//
// This rule is triggered when there are code blocks showing shell commands to
// be typed, and *all* of the shell commands are preceded by dollar signs ($):
//
// ```markdown
// $ ls
// $ cat foo
// $ less bar
// ```
//
// The dollar signs are unnecessary in this situation, and should not be
// included:
//
// ```markdown
// ls
// cat foo
// less bar
// ```
//
// Showing output for commands preceded by dollar signs does not trigger this
// rule:
//
// ```markdown
// $ ls
// foo bar
// $ cat foo
// Hello world
// $ cat bar
// baz
// ```
//
// Because some commands do not produce output, it is not a violation if
// *some* commands do not have output:
//
// ```markdown
// $ mkdir test
// mkdir: created directory 'test'
// $ ls test
// ```
//
// Rationale: It is easier to copy/paste and less noisy if the dollar signs
// are omitted when they are not needed. See
// <https://cirosantilli.com/markdown-style-guide#dollar-signs-in-shell-code>
// for more information.
"MD014": true,
// ## MD018 - No space after hash on atx style heading
//
// Tags: headings, headers, atx, spaces
//
// Aliases: no-missing-space-atx
//
// Fixable: Most violations can be fixed by tooling
//
// This rule is triggered when spaces are missing after the hash characters in
// an atx style heading:
//
// ```markdown
// #Heading 1
//
// ##Heading 2
// ```
//
// To fix this, separate the heading text from the hash character by a single
// space:
//
// ```markdown
// # Heading 1
//
// ## Heading 2
// ```
//
// Rationale: Violations of this rule can lead to improperly rendered content.
"MD018": true,
// ## MD019 - Multiple spaces after hash on atx style heading
//
// Tags: headings, headers, atx, spaces
//
// Aliases: no-multiple-space-atx
//
// Fixable: Most violations can be fixed by tooling
//
// This rule is triggered when more than one space is used to separate the
// heading text from the hash characters in an atx style heading:
//
// ```markdown
// # Heading 1
//
// ## Heading 2
// ```
//
// To fix this, separate the heading text from the hash character by a single
// space:
//
// ```markdown
// # Heading 1
//
// ## Heading 2
// ```
//
// Rationale: Extra space has no purpose and does not affect the rendering of
// content.
"MD019": true,
// ## MD020 - No space inside hashes on closed atx style heading
//
// Tags: headings, headers, atx_closed, spaces
//
// Aliases: no-missing-space-closed-atx
//
// Fixable: Most violations can be fixed by tooling
//
// This rule is triggered when spaces are missing inside the hash characters
// in a closed atx style heading:
//
// ```markdown
// #Heading 1#
//
// ##Heading 2##
// ```
//
// To fix this, separate the heading text from the hash character by a single
// space:
//
// ```markdown
// # Heading 1 #
//
// ## Heading 2 ##
// ```
//
// Note: this rule will fire if either side of the heading is missing spaces.
//
// Rationale: Violations of this rule can lead to improperly rendered content.
"MD020": true,
// ## MD021 - Multiple spaces inside hashes on closed atx style heading
//
// Tags: headings, headers, atx_closed, spaces
//
// Aliases: no-multiple-space-closed-atx
//
// Fixable: Most violations can be fixed by tooling
//
// This rule is triggered when more than one space is used to separate the
// heading text from the hash characters in a closed atx style heading:
//
// ```markdown
// # Heading 1 #
//
// ## Heading 2 ##
// ```
//
// To fix this, separate the heading text from the hash character by a single
// space:
//
// ```markdown
// # Heading 1 #
//
// ## Heading 2 ##
// ```
//
// Note: this rule will fire if either side of the heading contains multiple
// spaces.
//
// Rationale: Extra space has no purpose and does not affect the rendering of
// content.
"MD021": true,
// ## MD022 - Headings should be surrounded by blank lines
//
// Tags: headings, headers, blank_lines
//
// Aliases: blanks-around-headings, blanks-around-headers
//
// Parameters: lines_above, lines_below (number; default 1)
//
// Fixable: Most violations can be fixed by tooling
//
// This rule is triggered when headings (any style) are either not preceded or
// not followed by at least one blank line:
//
// ```markdown
// # Heading 1
// Some text
//
// Some more text
// ## Heading 2
// ```
//
// To fix this, ensure that all headings have a blank line both before and
// after (except where the heading is at the beginning or end of the
// document):
//
// ```markdown
// # Heading 1
//
// Some text
//
// Some more text
//
// ## Heading 2
// ```
//
// The `lines_above` and `lines_below` parameters can be used to specify a
// different number of blank lines (including 0) above or below each heading.
//
// Note: If `lines_above` or `lines_below` are configured to require more than
// one blank line, [MD012/no-multiple-blanks](#md012) should also be
// customized.
//
// Rationale: Aside from aesthetic reasons, some parsers, including kramdown,
// will not parse headings that don't have a blank line before, and will parse
// them as regular text.
"MD022": {
"lines_above": 2,
"lines_below": 1
},
// ## MD023 - Headings must start at the beginning of the line
//
// Tags: headings, headers, spaces
//
// Aliases: heading-start-left, header-start-left
//
// Fixable: Most violations can be fixed by tooling
//
// This rule is triggered when a heading is indented by one or more spaces:
//
// ```markdown
// Some text
//
// # Indented heading
// ```
//
// To fix this, ensure that all headings start at the beginning of the line:
//
// ```markdown
// Some text
//
// # Heading
// ```
//
// Rationale: Headings that don't start at the beginning of the line will not
// be parsed as headings, and will instead appear as regular text.
"MD023": true,
// ## MD024 - Multiple headings with the same content
//
// Tags: headings, headers
//
// Aliases: no-duplicate-heading, no-duplicate-header
//
// Parameters: siblings_only, allow_different_nesting (boolean; default
// `false`)
//
// This rule is triggered if there are multiple headings in the document that
// have the same text:
//
// ```markdown
// # Some text
//
// ## Some text
// ```
//
// To fix this, ensure that the content of each heading is different:
//
// ```markdown
// # Some text
//
// ## Some more text
// ```
//
// If the parameter `siblings_only` (alternatively `allow_different_nesting`)
// is set to `true`, heading duplication is allowed for non-sibling headings
// (common in change logs):
//
// ```markdown
// # Change log
//
// ## 1.0.0
//
// ### Features
//
// ## 2.0.0
//
// ### Features
// ```
//
// Rationale: Some markdown parsers generate anchors for headings based on the
// heading name; headings with the same content can cause problems with that.
"MD024": {
"siblings_only": true
},
// ## MD025 - Multiple top level headings in the same document
//
// Tags: headings, headers
//
// Aliases: single-title, single-h1
//
// Parameters: level, front_matter_title (number; default 1, string; default
// "^\s*title:")
//
// This rule is triggered when a top level heading is in use (the first line
// of the file is a h1 heading), and more than one h1 heading is in use in the
// document:
//
// ```markdown
// # Top level heading
//
// # Another top level heading
// ```
//
// To fix, structure your document so that there is a single h1 heading that
// is the title for the document, and all later headings are h2 or lower level
// headings:
//
// ```markdown
// # Title
//
// ## Heading
//
// ## Another heading
// ```
//
// Note: The `level` parameter can be used to change the top level (ex: to h2)
// in cases where a h1 is added externally.
//
// If [YAML](https://en.wikipedia.org/wiki/YAML) front matter is present and
// contains a `title` property (commonly used with blog posts), this rule
// treats that as a top level heading and will report a violation for any
// subsequent top level headings. To use a different property name in front
// matter, specify the text of a regular expression via the
// `front_matter_title` parameter. To disable the use of front matter by this
// rule, specify `""` for `front_matter_title`.
//
// Rationale: A top level heading is a h1 on the first line of the file, and
// serves as the title for the document. If this convention is in use, then
// there can not be more than one title for the document, and the entire
// document should be contained within this heading.
"MD025": {
"level": 1,
"front_matter_title": "^\\s*title:"
},
// ## MD026 - Trailing punctuation in heading
//
// Tags: headings, headers
//
// Aliases: no-trailing-punctuation
//
// Parameters: punctuation (string; default ".,;:!?。,;:!?")
//
// Fixable: Most violations can be fixed by tooling
//
// This rule is triggered on any heading that has one of the specified normal
// or full-width punctuation characters as the last character in the line:
//
// ```markdown
// # This is a heading.
// ```
//
// To fix this, remove the trailing punctuation:
//
// ```markdown
// # This is a heading
// ```
//
// Note: The `punctuation` parameter can be used to specify what characters
// count as punctuation at the end of a heading. For example, you can change
// it to `".,;:!"` to allow headings that end with a question mark, such as in
// an FAQ. Setting the `punctuation` parameter to `""` allows all characters
// - and is equivalent to disabling the rule.
//
// Rationale: Headings are not meant to be full sentences. More information:
// <https://cirosantilli.com/markdown-style-guide#punctuation-at-the-end-of-headers>
"MD026": {
"punctuation": ".,;:!。,;:!?"
},
// ## MD027 - Multiple spaces after blockquote symbol
//
// Tags: blockquote, whitespace, indentation
//
// Aliases: no-multiple-space-blockquote
//
// Fixable: Most violations can be fixed by tooling
//
// This rule is triggered when blockquotes have more than one space after the
// blockquote (`>`) symbol:
//
// ```markdown
// > This is a block quote with bad indentation
// > there should only be one.
// ```
//
// To fix, remove any extraneous space:
//
// ```markdown
// > This is a blockquote with correct
// > indentation.
// ```
//
// Rationale: Consistent formatting makes it easier to understand a document.
"MD027": true,
// ## MD028 - Blank line inside blockquote
//
// Tags: blockquote, whitespace
//
// Aliases: no-blanks-blockquote
//
// Fixable: Most violations can be fixed by tooling
//
// This rule is triggered when two blockquote blocks are separated by nothing
// except for a blank line:
//
// ```markdown
// > This is a blockquote
// > which is immediately followed by
//
// > this blockquote. Unfortunately In some parsers, these are treated as the
// > same blockquote.
// > ```
//