Skip to content

Commit abdb05d

Browse files
committed
test: add semantic indent test cases to pre-commit test
1 parent b062647 commit abdb05d

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

tests/pre-commit-test-align_semantic_breaks_in_numbered_lists.md

+27-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Semantic Line Indents
1+
# Testing `--align-semantic-breaks-in-numbered-lists`
2+
3+
## Semantic Line Indents
24

35
See discussion on: https://github.com/KyleKing/mdformat-mkdocs/issues/4
46

@@ -12,3 +14,27 @@ See discussion on: https://github.com/KyleKing/mdformat-mkdocs/issues/4
1214
five (three). It needs to be so, because
1315

1416
Otherwise this next paragraph doesn't belong in the same list item.
17+
18+
## Code block in semantic indent
19+
20+
From: https://github.com/KyleKing/mdformat-mkdocs/issues/6
21+
22+
1. Item 1
23+
with a semantic line feed
24+
25+
```bash
26+
echo "I get moved around by prettier/mdformat, originally I am 3 spaces deep"
27+
```
28+
29+
1. Item 2
30+
31+
1. Item 3
32+
33+
## Nested semantic lines
34+
35+
From: https://github.com/KyleKing/mdformat-mkdocs/issues/7
36+
37+
1. Line
38+
semantic line 1 (3 spaces deep)
39+
- Bullet (4 spaces deep)
40+
semantic line 2 (6 spaces deep)

0 commit comments

Comments
 (0)