opened
dcbishop
username_0
The 2nd example in 'Ranges' has an emoji in the example. It breaks the playground button and it can't be copy and pasted form the html version for some reason. Copying the example and inserting the correct emoji works fine.

I'm guessing something is stripping it out when it gets turned into plain text.

Also the 💅 is a bit hard to recognise as 'nail polish' on some renderers, maybe a simpler more obvious emoji would be a better choice. 🦀 would be Rust relevant but renders weirdly with B&W only fonts. 😀, ⚙️, 🐱 seem fine. 

Might be worth double checking that the printed edition renders it correctly too...

```
Compiling playground v0.0.1 (file:///playground)
error: character constant must be escaped: \'
 --> src/main.rs:3:10
  |
3 | let x = '';
  |          ^

error: aborting due to previous error

error: Could not compile `playground`.

To learn more, run the command again with --verbose.
```
[3.15] Patterns: Inline example with emoji (💅)  "▶️" button doesn't work
issue
created
carols10cents
username_1
Aha, this is in the first edition: https://doc.rust-lang.org/nightly/book/first-edition/patterns.html

The corresponding text in the second edition, the one that's going into print, does not use the 💅 emoji fwiw: https://doc.rust-lang.org/nightly/book/second-edition/ch18-03-pattern-syntax.html#matching-ranges-of-values-with- Examples that do use emoji in the second edition, such as the example in https://doc.rust-lang.org/nightly/book/second-edition/ch03-02-data-types.html#the-character-type that uses 😻 , are working fine for me with the play button and we are indeed checking that they render correctly in print.

Running the example that uses 💅 by clicking the play button, as well as copying using the copy button and highlighting the text itself, all worked for me in firefox nightly, what browser are you using please? 

This is likely a bug in mdbook, though, or maybe the playground, but I'd like to narrow it down a bit before moving this issue elsewhere.
comment
created
dcbishop
username_0
I'm using Chrome.

Messing around a bit more, It looks like it is an extension on my end "[Emoji Keyboard 2017](https://chrome.google.com/webstore/detail/emoji-keyboard-2016-by-em/ipdjnhgkpapgippgcgkfcbpdpcgifncb?utm_source=chrome-app-launcher-info-dialog)". But have been replacing them with pictures. I've just disabled it since I never used it.
comment
closed
dcbishop
username_0
issue