Skip to content

Commit ade6e1c

Browse files
authored
Fix HTML block indentation in markdown list items
Corrected the indentation of raw HTML in markdown list items to prevent drift during formatting.
1 parent a0f3dd8 commit ade6e1c

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎changelog_unreleased/markdown/19987.md‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
11
#### Fix HTML block indentation drift in markdown list items (#19987 by @lazerg)
22

3-
Raw HTML nested in a list item drifted one column further right on every format pass with `--tab-width 4`, never settling down.
4-
53
<!-- prettier-ignore -->
64
```markdown
7-
<!-- tabWidth: 4 -->
85
<!-- Input -->
96
1. Enable images:
107

118
<p align="center">
129
<img alt="example">
1310
</p>
1411

15-
<!-- Prettier stable -->
12+
<!-- Prettier stable (--tab-width=4) -->
1613
1. Enable images:
1714

1815
<p align="center">
1916
<img alt="example">
2017
</p>
2118

22-
<!-- Prettier main -->
19+
<!-- Prettier main (--tab-width=4) -->
2320
1. Enable images:
2421

2522
<p align="center">

0 commit comments

Comments
 (0)