bublejs / buble

https://buble.surge.sh
MIT License
870 stars 67 forks source link

fix: Make JSX respect advanced white-space characters (fixes #217) #218

Closed maranomynet closed 5 years ago

maranomynet commented 5 years ago

HTML only collapses normal space, tabs and newlines. React's JSX (and Babel) traditionally also does that.

Bublé, however, has until now greedily killed all types of spaces, except for   which it turned into HTML-escaped entity, which in turn breaks the text-node rendering in Mithril.js and Hyperscript.js.

(See #217 for more info)