Closed dcyriller closed 5 years ago
Running the script, I ran into a bug with nested if / else.
Before:
if inGoodMood if inVeryGoodMood h1 hiii else h1 hi else if inVeryBadMood span :unamused: h1 bye
After:
{{#if inGoodMood}} {{#if inVeryGoodMood}} <h1> hiii </h1> {{else}} <h1> hi </h1> {{/if}} {{else if inVeryBadMood}} <span> :unamused: </span> <h1> bye </h1> {{/if}}
(see https://github.com/dcyriller/__emblem-to-hbs-nested-if)
I've opened a PR in prettier to fix the issue: https://github.com/prettier/prettier/pull/6080
Description
Running the script, I ran into a bug with nested if / else.
Reproduction
Before:
After:
(see https://github.com/dcyriller/__emblem-to-hbs-nested-if)