From 40ede19103a9d05bd77ad9d748861a088562aa69 Mon Sep 17 00:00:00 2001 From: Michael Bryan Date: Thu, 30 Aug 2018 22:57:01 +0800 Subject: [PATCH] Got my logic around the wrong way --- src/book/mod.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/book/mod.rs b/src/book/mod.rs index 275f1639..b633fad5 100644 --- a/src/book/mod.rs +++ b/src/book/mod.rs @@ -401,10 +401,9 @@ fn interpret_custom_renderer(key: &str, table: &Value) -> Box { /// The `build.use-default-preprocessors` config option can be used to ensure /// default preprocessors always run if they support the renderer. fn preprocessor_should_run(preprocessor: &Preprocessor, renderer: &Renderer, cfg: &Config) -> bool { - if cfg.build.use_default_preprocessors && - is_default_preprocessor(preprocessor) && - preprocessor.supports_renderer(renderer.name()) { - return true; + // default preprocessors should be run by default (if supported) + if cfg.build.use_default_preprocessors && is_default_preprocessor(preprocessor) { + return preprocessor.supports_renderer(renderer.name()); } let key = format!("preprocessor.{}.renderers", preprocessor.name());