Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(markdown): better handling for trailing spaces (#4593)
- preserve trailing spaces in html, excluding html comment - `doc-printer` is now unrelated to `options.parser` - fix some cases that two trailing spaces are mis-considered as `break`
- Loading branch information
Showing
7 changed files
with
98 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,6 @@ | |
|
||
123\ | ||
456 | ||
|
||
- 123 | ||
123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
1. Some test text, the goal is to have the html table below nested within this number. When formating on save Prettier will continue to add an indent each time pushing the table further and further out of sync. | ||
|
||
<table class="table table-striped"> | ||
<tr> | ||
<th>Test</th> | ||
<th>Table</th> | ||
</tr> | ||
<tbody> | ||
<tr> | ||
<td>will</td> | ||
<td>be</td> | ||
</tr> | ||
<tr> | ||
<td>pushed</td> | ||
<td>When</td> | ||
</tr> | ||
<tr> | ||
<td>Format on</td> | ||
<td>Save</td> | ||
</tr> | ||
</tbody> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters