Skip to content

Commit d6d1343

Browse files
committed
chore: stop editors from trimming README's markdown line breaks
README.md relies on two trailing spaces per line in its WordPress readme header block to force Markdown line breaks. Exempt *.md from trim_trailing_whitespace in .editorconfig, and add the same exemption to VS Code's own files.trimTrailingWhitespace setting since it can override .editorconfig without the EditorConfig extension.
1 parent 6df643c commit d6d1343

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ indent_style = tab
1717
indent_style = space
1818
indent_size = 2
1919

20+
[*.md]
21+
trim_trailing_whitespace = false
22+

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"[markdown]": {
3+
"files.trimTrailingWhitespace": false
4+
}
5+
}

0 commit comments

Comments
 (0)