Closed ckknight closed 8 years ago
definitively an ugly bug. :(
Will try to take a look at it now
I just published a new version with this fixed. Let me know if there is any instance where it fails...
@royriojas Your demo duplicates the backtick string in the inner backtick string.
Also, the indentation bug is present if you do something akin to
<Comp prop={fn`
hello
`}/>
@ckknight I have to update the demo to use the latest. That shouldn't be happening with the latest.
For the other one I will investigate. Would you matter to create a new issue for the tags in backtips? please.
This is likely related to #53, but occurs regardless if
formatJSXExpressions
is true or falseUsing esformatter 0.9.3 and esformatter-jsx 5.0.4
.esformatter:
Initial input:
First output:
Second output:
Third output:
Also see #70 for a PR to verify reformatting