File tree 1 file changed +5
-1
lines changed 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -333,14 +333,18 @@ fn determine_renderers(config: &Config) -> Vec<Box<Renderer>> {
333
333
renderers
334
334
}
335
335
336
+ fn default_preprocessors ( ) -> Vec < Box < Preprocessor > > {
337
+ vec ! [ Box :: new( LinkPreprocessor :: new( ) ) ]
338
+ }
339
+
336
340
/// Look at the `MDBook` and try to figure out what preprocessors to run.
337
341
fn determine_preprocessors ( config : & Config ) -> Result < Vec < Box < Preprocessor > > > {
338
342
339
343
let preprocess_list = match config. build . preprocess {
340
344
Some ( ref p) => p,
341
345
// If no preprocessor field is set, default to the LinkPreprocessor. This allows you
342
346
// to disable the LinkPreprocessor by setting "preprocess" to an empty list.
343
- None => return Ok ( vec ! [ Box :: new ( LinkPreprocessor :: new ( ) ) ] )
347
+ None => return Ok ( default_preprocessors ( ) )
344
348
} ;
345
349
346
350
let mut preprocessors: Vec < Box < Preprocessor > > = Vec :: new ( ) ;
You can’t perform that action at this time.
0 commit comments