Skip to content

Commit 6771e06

Browse files
committed
Clarify markdown whitespace rule
1 parent dbc626d commit 6771e06

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.editorconfig

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# EditorConfig helps maintain consistent coding styles
2+
# across different editors and IDEs
3+
# https://EditorConfig.org
4+
5+
root = true
6+
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[*.rb]
14+
indent_style = space
15+
indent_size = 2
16+
17+
[{Gemfile,Rakefile,config.ru}]
18+
indent_style = space
19+
indent_size = 2
20+
21+
[*.md]
22+
# Two trailing spaces yield a hard line break in Markdown.
23+
# https://spec.commonmark.org/0.30/#hard-line-breaks
24+
trim_trailing_whitespace = false

0 commit comments

Comments
 (0)