From cc431c14ec77935ddc2e585c8e9877d07c631348 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Thu, 11 Dec 2025 16:46:40 -0800 Subject: [PATCH] Synchronize TrplNote name This changes the name of the `TrplNote` mdbook preprocessor so that it matches the name used in `book.toml`. The reason this needs to be in sync is that in upstream we use `MDBook::with_preprocessor` to replace the preprocessor, but unfortunately it grabs the name from the preprocessor itself. If these are out of sync, it ends up not being able to replace the old preprocessor config. The API in mdbook should probably be better to make it easier to manage the config. For now, this is probably the easiest fix. --- packages/mdbook-trpl/src/note/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mdbook-trpl/src/note/mod.rs b/packages/mdbook-trpl/src/note/mod.rs index 08c62811fd..4e52cf0dc7 100644 --- a/packages/mdbook-trpl/src/note/mod.rs +++ b/packages/mdbook-trpl/src/note/mod.rs @@ -30,7 +30,7 @@ pub struct TrplNote; impl Preprocessor for TrplNote { fn name(&self) -> &str { - "simple-note-preprocessor" + "trpl-note" } fn run(&self, _ctx: &PreprocessorContext, mut book: Book) -> Result {