Skip to content

Bash script in markdown file gets partially deleted #445

@NancyKunath

Description

@NancyKunath

Updating to prettier-plugin-sh 0.17.0 in our project results in prettier deleting lines from our README.md file.

This can be reproduced by adding a simple README.md like this:

```bash
curl --location --request PUT 'https://url.com/bla?q=\'hi\'' \
--header 'Content-Type: application/json'
``` 

Executing prettier on this file leads to prettier deleting the first line of the bash-snipped:

```bash
--header 'Content-Type: application/json'
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions