Skip to content

Commit

Permalink
refactor: update test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKing committed Jul 18, 2023
1 parent abdb05d commit ffac669
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 2 deletions.
22 changes: 20 additions & 2 deletions mkdocs-demo/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ See discussion on: https://github.com/KyleKing/mdformat-mkdocs/issues/4
three.

1. Here indent width is
five (three). It needs to be so, because
five (three). The following indent needs to be four (but it is 3 with semantic change).

Otherwise this next paragraph doesn't belong in the same list item.

Expand All @@ -30,6 +30,24 @@ See discussion on: https://github.com/KyleKing/mdformat-mkdocs/issues/4
three (four).

1. Here indent width is
five (four). It needs to be so, because
five (four). The following indent needs to be four.

Otherwise this next paragraph doesn't belong in the same list item.

---

### With proposed change for bullets

1. Line
semantic line 1 (3 spaces deep)
- Bullet (4 spaces deep)
semantic line 2 (6 spaces deep)

---

### With proposed change for bullets nested in a numbered list

- Line
semantic line 1 (2 spaces deep)
- Bullet (4 spaces deep)
semantic line 2 (6 spaces deep)
28 changes: 28 additions & 0 deletions tests/fixtures-semantic-indent.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,34 @@ Nested semantic lines (https://github.com/KyleKing/mdformat-mkdocs/issues/7)
.


Bulleted semantic lines (https://github.com/KyleKing/mdformat-mkdocs/issues/7)
.
- Line
semantic line 1 (2 spaces deep)
- Bullet (4 spaces deep)
semantic line 2 (6 spaces deep)
.
- Line
semantic line 1 (2 spaces deep)
- Bullet (4 spaces deep)
semantic line 2 (6 spaces deep)
.


Nested semantic lines (https://github.com/KyleKing/mdformat-mkdocs/issues/7)
.
- Line
semantic line 1 (2 spaces deep)
1. Bullet (4 spaces deep)
semantic line 2 (7 spaces deep)
.
- Line
semantic line 1 (2 spaces deep)
1. Bullet (4 spaces deep)
semantic line 2 (7 spaces deep)
.


Table
.
| Label | Rating | Comment |
Expand Down
28 changes: 28 additions & 0 deletions tests/fixtures.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,34 @@ Nested semantic lines (https://github.com/KyleKing/mdformat-mkdocs/issues/7)
.


Bulleted semantic lines (https://github.com/KyleKing/mdformat-mkdocs/issues/7)
.
- Line
semantic line 1 (2 spaces deep)
- Bullet (4 spaces deep)
semantic line 2 (6 spaces deep)
.
- Line
semantic line 1 (2 spaces deep)
- Bullet (4 spaces deep)
semantic line 2 (6 spaces deep)
.


Nested semantic lines (https://github.com/KyleKing/mdformat-mkdocs/issues/7)
.
- Line
semantic line 1 (2 spaces deep)
1. Bullet (4 spaces deep)
semantic line 2 (7 spaces deep)
.
- Line
semantic line 1 (2 spaces deep)
1. Bullet (4 spaces deep)
semantic line 2 (7 spaces deep)
.


Table
.
| Label | Rating | Comment |
Expand Down

0 comments on commit ffac669

Please sign in to comment.