You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/meta/playpen.md
+8
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,14 @@ This allows the reader to both run your code sample, but also modify and tweak i
20
20
```
21
21
````
22
22
23
+
Additionally, you can add `ignore` if you want `mdbook` to skip your code when it builds and tests.
24
+
25
+
````markdown
26
+
```rust,editable,ignore
27
+
//...place your code here
28
+
```
29
+
````
30
+
23
31
## Using it with docs
24
32
25
33
You may have noticed in some of the [official Rust docs][official-rust-docs] a button that says "Run", which opens the code sample up in a new tab in Rust Playground. This feature is enabled if you use the #[doc] attribute called [`html_playground_url`][html-playground-url].
0 commit comments