Closed ssorallen closed 9 years ago
Note: this is not a bug in "turbo-react" but rather a limitation or bug in JSX itself. HTML interprets newlines and/or many spaces to be a single space. JSX does not interpret newlines the same way.
Although now I realize why I originally opened this: the loss of significant whitespace needs to be fixed in the output before running it through JSX.
This has been fixed by integrating react-magic's HTML to JSX converter.
When an inline element is on a new line after a block of text or there is a block of text after an inline element and a new line, the white space between is lost.
Example:
Output:
Ideally the source HTML would not have to be modified to maintain the white space.