🐛 Bug: prettier-plugin-sentences-per-line - Indentation is not preserved for list items that span multiple lines
status: accepting prstype: bug
### Bug Report Checklist
- [x] I have tried restarting my IDE and the issue persists.
- [x] I have pulled the latest `main` branch of the repository.
- [x] I have [searched for related issues](https://github.com/JoshuaKGoldberg/sentences-per-line/issues?q=is%3Aissue) and found none that matched my issue.
### Expected
Consider the following `md` snippet with a list item.
```text
- `Array<string>` - to specify an array of top-level package properties to lint sorting on only those properties.
All properties not in this collection will be sorted by "sort-package-json" specifications.
```
List items containing multiple phrases across multiple lines should maintain consistent indentation.
### Actual
At the moment the second line indentation is stripped producing the following output:
```text
- `Array<string>` - to specify an array of top-level package properties to lint sorting on only those properties.
All properties not in this collection will be sorted by "sort-package-json" specifications.
```
Removing `prettier-plugin-sentences-per-line` proceeds the expected behaviour.
### Additional Info
- Coming from https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/pull/1500#issuecomment-3708203854
`md` complete snippet can be found here: https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/eeff2b8af576e503a155b72313ac9e69807c48c2/docs/rules/order-properties.md?plain=1#L56-L57
3 条评论