Skip to content

Commit 7fa966f

Browse files
committed
Compile, but do not run the preprocessor examples.
1 parent cb77a89 commit 7fa966f

File tree

4 files changed

+112
-21
lines changed

4 files changed

+112
-21
lines changed

Cargo.lock

Lines changed: 86 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

guide/Cargo.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[package]
2+
name = "mdbook-book-code-samples"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
anyhow.workspace = true
8+
clap.workspace = true
9+
mdbook.workspace = true
10+
pulldown-cmark.workspace = true
11+
pulldown-cmark-to-cmark = "18.0.0"
12+
serde.workspace = true
13+
serde_json.workspace = true
14+
semver.workspace = true

guide/src/for_developers/preprocessors.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ be adapted for other preprocessors.
3636
<details>
3737
<summary>Example no-op preprocessor</summary>
3838

39-
```rust
39+
```rust,no_run
4040
// nop-preprocessors.rs
41-
4241
{{#include ../../../examples/nop-preprocessor.rs}}
4342
```
4443
</details>
@@ -67,7 +66,7 @@ translate events back into markdown text.
6766
The following code block shows how to remove all emphasis from markdown,
6867
without accidentally breaking the document.
6968

70-
```rust
69+
```rust,no_run
7170
{{#rustdoc_include ../../../examples/remove-emphasis/mdbook-remove-emphasis/src/main.rs:remove_emphasis}}
7271
```
7372

guide/src/lib.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// no code yet?
2+
#![allow(unused)]
3+
use mdbook;
4+
use serde_json;
5+
use pulldown_cmark;
6+
use pulldown_cmark_to_cmark;
7+
8+
pub fn marco() {
9+
10+
}

0 commit comments

Comments
 (0)