From 5382d4b7bbaa4e48b922c94e3c0848b9f44e3af1 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Sun, 29 Mar 2020 15:04:40 -0700 Subject: [PATCH] feat: add example with ignore to playpen --- src/meta/playpen.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/meta/playpen.md b/src/meta/playpen.md index e8706752cc..a125f139d8 100644 --- a/src/meta/playpen.md +++ b/src/meta/playpen.md @@ -20,6 +20,14 @@ This allows the reader to both run your code sample, but also modify and tweak i ``` ```` +Additionally, you can add `ignore` if you want `mdbook` to skip your code when it builds and tests. + +````markdown +```rust,editable,ignore +//...place your code here +``` +```` + ## Using it with docs 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].