-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmarkdownlint.rb
More file actions
59 lines (47 loc) · 1.62 KB
/
markdownlint.rb
File metadata and controls
59 lines (47 loc) · 1.62 KB
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
# mdl (markdownlint) links
# gem repo:
# https://github.com/markdownlint/markdownlint
# rules:
# https://github.com/markdownlint/markdownlint/blob/main/docs/RULES.md
# configuration:
# https://github.com/markdownlint/markdownlint/blob/main/docs/configuration.md
# relevant .mdlrc
# styles:
# https://github.com/markdownlint/markdownlint/blob/main/docs/creating_styles.md
# relevant to this file!
# load all rules
all
# skip these rules/tags
# https://github.com/markdownlint/markdownlint/blob/main/docs/RULES.md
# allow long lines
exclude_rule 'MD013'
# configure these rules (like .rubocop.yml)
# any rule in with `params` is configurable
# search here for which rules have `params`:
# https://github.com/markdownlint/markdownlint/blob/main/lib/mdl/rules.rb
# ensure that all headings are ATX style
# ATX headings are 1-6 leading octothorpes, example:
# # This is an ATX H1
# ## This is an ATX H2
rule 'MD003', style: :atx
# ensure that all unordered lists start with a hyphen,
# not asterisks or pluses
rule 'MD004', style: :dash
# indent nested listed with four spaces
rule 'MD007', indent: 4
# allow ending heading with question mark
# default disallowed list is: ".,;:!?"
rule 'MD026', punctuation: '.,;:!'
# prefer lists with ordered numbers over all ones
rule 'MD029', style: :ordered
# allow bare URLs, because GitHub renders them as links
exclude_rule 'MD034'
# ensure that all horizontal lists are hyphen style,
# not asterisks or hyphens with spaces
rule 'MD035', style: '---'
# ensure that all code blocks use backtick fences, not indentation
# example:
# ```ruby
# ...
# ```
rule 'MD046', style: :fenced