-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust Playground Integration for Code Blocks #402
Comments
I'd be happy to tackle this if there's any interest. |
This should probably be implemented in mdbook. |
Hm. This works for me when I build and read the book locally, but when I try to use one of the "play" buttons on any page on http://rust-lang.github.io/book/second-edition, the |
@carols10cents any specific examples? I just did it for the first one on http://rust-lang.github.io/book/second-edition/ch03-02-data-types.html and it worked for me. Maybe the playpen was timing out when you tried? I guess you said you did see no ajax request though. |
LMAO nevermind. Turns out my privacy badger addon was blocking play.rust-lang.org. If I unblock it, it totally works. So I think this is fixed now!! |
A various points in the book there are very pretty formatted blocks of code.
It'd be cool to have a "run" button. Even cooler if it could be optionally disabled on a codeblock-by-codeblock basis. Perhaps disabling it could correlated with some visual cue for "not entirely working".
The text was updated successfully, but these errors were encountered: