-
Notifications
You must be signed in to change notification settings - Fork 4
/
.markdown.style.rb
54 lines (48 loc) · 1.33 KB
/
.markdown.style.rb
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
# frozen_string_literal: true
# Style rule for my personal markdown style preferences for mdl
# https://github.com/mivok/markdownlint/blob/master/docs/creating_styles.md
# Start by including all rules
all
#
# MD031:
#
# https://github.com/mivok/markdownlint/blob/master/docs/\
# RULES.md#md031---fenced-code-blocks-should-be-surrounded-by-blank-lines
#
# Cannot figure out how to meet this rule - doesn't seem to work
# properly--I have blank lines before and after these blocks!
#
# e.g., this triggers:
#
# 5. Test away!
#
# ```
# ../deploy/scripts/db cms-${stack:?}-dbadmin
# ```
### Backups
exclude_rule 'MD031'
#
# MD029:
#
# Reconfigure rule MD029 so that ordered lists don't have to always be
# labeled as '1', but instead must proceed from 1 to 2 to 3 to ...
#
rule 'MD029', style: 'ordered'
#
# MD013
#
# Reconfigure rule MD013 so that we don't check for long line length
# within a code block, as having a big long one-liner is sometimes
# better than trusting a person will get multiple lines copied
# correctly.
#
rule 'MD013', code_blocks: false
#
# MD024
#
# Reconfigure MD024 so that it only complains on duplicate header
# titles if they're actual sublings (as opposed to the same subsection
# name under two different sections).
#
# https://github.com/markdownlint/markdownlint/issues/175
rule 'MD024', allow_different_nesting: true