Skip to content

Commit 2c1adee

Browse files
committed
editorconfig: Use 4 spaces identation for Markdown files
This is because mkdocs doesn't render numbered lists correctly if they have more than one paragraph using less than 4 spaces indentation. For example, this: ```md 1. A list item. This list item gets improperly rendered. ``` Gets rendered like this in HTML: ```html <ol> <li><p>A list item./<p></li> </o> <p>This list item gets improperly rendered.</p> ``` While this: ```md 1. A list item. This list item gets improperly rendered. ``` Gets rendered like this in HTML: ```html <ol> <li> <p>A list item.</p> <p>This list item gets improperly rendered.</p> </li> </o> ``` Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 023cbf1 commit 2c1adee

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.editorconfig

+1-4
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,9 @@ indent_style = space
1515
trim_trailing_whitespace = true
1616

1717
# 4 space indentation
18-
[*.{py,pyi}]
18+
[*.{md,py,pyi}]
1919
indent_size = 4
2020

2121
# 2 space indentation
2222
[{.editorconfig,CODEOWNERS,LICENSE,*.{in,json,proto,toml,yaml,yml}}]
2323
indent_size = 2
24-
25-
# No indentation size specified for *.md because different blocks have
26-
# different indentation rules

0 commit comments

Comments
 (0)