Open dvmorris opened 8 years ago
Fixed in version 0.10.4
This fix did not work for me. I am still seeing the same issue, and I'm running the following versions:
├─┬ poetic-stanza@1.0.6
│ ├── chalk@1.1.3
│ ├── cheerio@0.20.0
│ ├── commander@2.9.0 (git://github.com/rike422/commander.js.git#81577a6544b52fb22fee60f5e2c660c6565c04bf)
│ ├── glob@7.0.5
│ ├── lodash@4.13.1
│ ├── reacterminator@0.10.4
│ └── shelljs@0.6.0
@Chun-Yang I'm looking into this issue and it appears that babylon's parse, using the jsx plugin, strips out and replaces it with a ' '. If you get some time we can discuss this tomorrow and see if there's anything we want to do or can do. Attached below is a link to the map that babylon uses to replace html attributes and a screen shot of console output.
https://github.com/babel/babylon/blob/master/src/plugins/jsx/xhtml.js
@martinbee Thank you for looking into this. It would be ideal if we can pass in some options into babylon so that it preserve this keyword. Let's see what we can do.
Reacterminator does not seem to be honoring nbsp; characters. Example:
Input
Output