From 9eb6fe048387c4843dd7623a7f803511276c5a57 Mon Sep 17 00:00:00 2001 From: Lucas Pickering Date: Mon, 1 Dec 2025 18:40:55 -0500 Subject: [PATCH] Fix link for parse_input() in preprocessors.md This doc still referenced `CmdPreprocessor::parse_input`, which was removed in 0.5. Now it's just `mdbook_preprocessor::parse_input`. --- guide/src/for_developers/preprocessors.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guide/src/for_developers/preprocessors.md b/guide/src/for_developers/preprocessors.md index 48c27fa373..86533ff491 100644 --- a/guide/src/for_developers/preprocessors.md +++ b/guide/src/for_developers/preprocessors.md @@ -49,7 +49,7 @@ By pulling in `mdbook-preprocessor` as a library, preprocessors can have access existing infrastructure for dealing with books. For example, a custom preprocessor could use the -[`CmdPreprocessor::parse_input()`] function to deserialize the JSON written to +[`parse_input()`] function to deserialize the JSON written to `stdin`. Then each chapter of the `Book` can be mutated in-place via [`Book::for_each_mut()`], and then written to `stdout` with the `serde_json` crate. @@ -101,7 +101,7 @@ if __name__ == '__main__': [pc]: https://crates.io/crates/pulldown-cmark [pctc]: https://crates.io/crates/pulldown-cmark-to-cmark [an example no-op preprocessor]: https://github.com/rust-lang/mdBook/blob/master/examples/nop-preprocessor.rs -[`CmdPreprocessor::parse_input()`]: https://docs.rs/mdbook-preprocessor/latest/mdbook_preprocessor/trait.Preprocessor.html#method.parse_input +[`parse_input()`]: https://docs.rs/mdbook-preprocessor/latest/mdbook_preprocessor/fn.parse_input.html [`Book::for_each_mut()`]: https://docs.rs/mdbook-preprocessor/latest/mdbook_preprocessor/book/struct.Book.html#method.for_each_mut [`PreprocessorContext`]: https://docs.rs/mdbook-preprocessor/latest/mdbook_preprocessor/struct.PreprocessorContext.html [`Book`]: https://docs.rs/mdbook-preprocessor/latest/mdbook_preprocessor/book/struct.Book.html