-
Notifications
You must be signed in to change notification settings - Fork 44
/
.markdownlint.rb
45 lines (36 loc) · 1.43 KB
/
.markdownlint.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
#
# Copyright 2019 Square Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Configuring rules:
# https://github.com/markdownlint/markdownlint/blob/master/docs/creating_styles.md
# Rule list:
# https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md
# Need to explicitly run all rules, so the per-rule configs below aren't used as an allowlist.
all
# Increase default line length from 80 to 100.
rule 'MD013', :line_length => 100, :code_blocks => false, :tables => false
# Enable inline HTML.
exclude_rule 'MD033'
# Allow paragraphs that consiste entirely of emphasized text.
exclude_rule 'MD036'
# Allow trailing question marks in headers.
rule 'MD026', :punctuation => '.,;:!'
# Markdownlint can't handle mkdocs' code block tab syntax, so disable code block formatting.
exclude_rule 'MD040'
exclude_rule 'MD046'
# Don't care about blank lines surround fenced code blocks.
exclude_rule 'MD031'
# Allow raw URLs.
exclude_rule 'MD034'