prettier-github icon indicating copy to clipboard operation
prettier-github copied to clipboard

Be more tolerant about whitespace

Open jgierer12 opened this issue 7 years ago • 0 comments

Sometimes, a comment will be edited even if there's nothing to format because extract-gfm always inserts a whitespace after code blocks. For example, this:

```sh
echo "Nothing to format here"
```

will be transformed into this:

```sh
echo "Nothing to format here"
```
    

which will result in an unneccessary edit

Note since #4, this is reversed (always removes newline after a code block if it's not required), but the problem of unneccessary edits still exists. However, with #4 this should be much easier to fix now.

jgierer12 avatar Jun 11 '17 08:06 jgierer12