-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.markdownlint.jsonc
123 lines (122 loc) · 2.36 KB
/
.markdownlint.jsonc
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
// This file defines our configuration for Markdownlint. See
// https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
// for more details on each rule.
{
"default": true,
"first-line-heading": false,
// Disabled, as some callouts include headings.
"heading-increment": false,
"ul-style": {
"style": "dash",
},
"ul-indent": {
"indent": 2,
},
"no-hard-tabs": {
"spaces_per_tab": 2,
},
"line-length": false,
"no-duplicate-heading": {
"siblings_only": true,
},
"single-title": {
"front_matter_title": "^\\s*title\\s*[:=]",
},
"no-trailing-punctuation": {
"punctuation": ".,;:",
},
// Consecutive Notes/Callouts currently don't conform with this rule
"no-blanks-blockquote": false,
// Force ordered numbering to catch accidental list ending from indenting
"ol-prefix": {
"style": "ordered",
},
"no-inline-html": {
"allowed_elements": [
"a",
"abbr",
"annotation",
"br",
"caption",
"code",
"col",
"colgroup",
"dd",
"details",
"div",
"dl",
"dt",
"em",
"h4",
"h5",
"img",
"kbd",
"li",
"math",
"menclose",
"mfenced",
"mfrac",
"mfrac",
"mi",
"mmultiscripts",
"mn",
"mo",
"mover",
"mphantom",
"mprescripts",
"mroot",
"mrow",
"ms",
"mspace",
"mspace",
"msqrt",
"mstyle",
"msub",
"msubsup",
"msup",
"mtable",
"mtd",
"mtext",
"mtr",
"munder",
"munderover",
"none",
"ol",
"p",
"pre",
"q",
"section",
"semantics",
"strong",
"sub",
"summary",
"sup",
"table",
"tbody",
"td",
"tfoot",
"th",
"thead",
"tr",
"ul",
"var",
],
},
"no-bare-urls": true,
// Produces too many true positives
"no-space-in-emphasis": true,
"fenced-code-language": true,
// See https://github.com/mdn/content/pull/20026, as macros currently break this
"no-empty-links": true,
"code-block-style": {
"style": "fenced",
},
"emphasis-style": {
"style": "underscore",
},
"strong-style": {
"style": "asterisk",
},
// Disabled, as yari generates link fragments by replacing spaces with underscores, not dashes.
"link-fragments": true,
}