Open estevanmaito opened 4 years ago
I was running into this problem myself and have a simple workaround for now. Just .trim()
ing the children when passing them to the LiveProvider
code prop works for me.
Wow, I tried trimming the transformed code, but didn't try the children. It solved the problem! Thank you.
Every code editor rendered creates a new line in the end.
Code like this (the ` `` is just to avoid syntax breaking here):
Turns into this:
It can be seen live here
The important code for the live editor is below and the entire component code can be found here
This is the Provider