Skip to content

Fix book-example tests #162

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

Merged
merged 2 commits into from
Aug 6, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion book-example/src/format/mathjax.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ To indicate a block equation

use

```
```bash
\\[ \mu = \frac{1}{N} \sum_{i=0} x_i \\]
```
8 changes: 4 additions & 4 deletions book-example/src/format/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
#}
# }
```


Expand Down
8 changes: 4 additions & 4 deletions book-example/src/format/theme/syntax-highlighting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.**
Expand Down