Skip to content

Commit 5382d4b

Browse files
committed
feat: add example with ignore to playpen
1 parent 051382a commit 5382d4b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/meta/playpen.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ This allows the reader to both run your code sample, but also modify and tweak i
2020
```
2121
````
2222

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+
2331
## Using it with docs
2432

2533
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

Comments
 (0)