You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guide/src/format/configuration/preprocessors.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ For information on how to create a new preprocessor, see the [Preprocessors for
23
23
[Third Party Plugins]: https://github.com/rust-lang/mdBook/wiki/Third-party-plugins
24
24
[Preprocessors for Developers]: ../../for_developers/preprocessors.md
25
25
26
-
## Custom Preprocessor Configuration
26
+
## Custom preprocessor configuration
27
27
28
28
Preprocessors can be added by including a `preprocessor` table in `book.toml` with the name of the preprocessor.
29
29
For example, if you have a preprocessor called `mdbook-example`, then you can include it with:
@@ -42,7 +42,7 @@ For example, if our example preprocessor needed some extra configuration options
42
42
some-extra-feature = true
43
43
```
44
44
45
-
## Locking a Preprocessor dependency to a renderer
45
+
## Locking a preprocessor dependency to a renderer
46
46
47
47
You can explicitly specify that a preprocessor should run for a renderer by
48
48
binding the two together.
@@ -52,7 +52,7 @@ binding the two together.
52
52
renderers = ["html"] # example preprocessor only runs with the HTML renderer
53
53
```
54
54
55
-
## Provide Your Own Command
55
+
## Provide your own command
56
56
57
57
By default when you add a `[preprocessor.foo]` table to your `book.toml` file,
58
58
`mdbook` will try to invoke the `mdbook-foo` executable. If you want to use a
@@ -76,7 +76,7 @@ optional = true
76
76
77
77
This demotes the error to a warning.
78
78
79
-
## Require A Certain Order
79
+
## Require a certain order
80
80
81
81
The order in which preprocessors are run can be controlled with the `before` and `after` fields.
82
82
For example, suppose you want your `linenos` preprocessor to process lines that may have been `{{#include}}`d; then you want it to run after the built-in `links` preprocessor, which you can require using either the `before` or `after` field:
0 commit comments