From 1b9d55bcd5dee534c3f2323d783c16844a5b9c93 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Sat, 6 Aug 2016 15:10:41 -0400 Subject: [PATCH] Put spaces between `#` and hidden lines --- book-example/src/format/rust.md | 8 ++++---- book-example/src/format/theme/syntax-highlighting.md | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/book-example/src/format/rust.md b/book-example/src/format/rust.md index 0129bac7..d684dc75 100644 --- a/book-example/src/format/rust.md +++ b/book-example/src/format/rust.md @@ -5,23 +5,23 @@ There is a feature in mdBook that let's you hide code lines by prepending them with a `#`. ```bash -#fn main() { +# fn main() { let x = 5; let y = 6; println!("{}", x + y); -#} +# } ``` Will render as ```rust -#fn main() { +# fn main() { let x = 5; let y = 7; println!("{}", x + y); -#} +# } ``` diff --git a/book-example/src/format/theme/syntax-highlighting.md b/book-example/src/format/theme/syntax-highlighting.md index da8cc4f3..ec4490a6 100644 --- a/book-example/src/format/theme/syntax-highlighting.md +++ b/book-example/src/format/theme/syntax-highlighting.md @@ -28,23 +28,23 @@ There is a feature in mdBook that let's you hide code lines by prepending them w ```bash -#fn main() { +# fn main() { let x = 5; let y = 6; println!("{}", x + y); -#} +# } ``` Will render as ```rust -#fn main() { +# fn main() { let x = 5; let y = 7; println!("{}", x + y); -#} +# } ``` **At the moment, this only works for code examples that are annotated with `rust`. Because it would collide with semantics of some programming languages. In the future, we want to make this configurable through the `book.json` so that everyone can benefit from it.**