Skip to content

Commit

Permalink
infra: support test renderer in mdbook preprocessors
Browse files Browse the repository at this point in the history
This does not change the actual behavior of `mdbook test`, but it does
get rid of a warning about the test renderer being unsupported!
  • Loading branch information
chriskrycho committed Jul 17, 2024
1 parent 9c974f1 commit d10039f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/mdbook-trpl-listing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl Preprocessor for TrplListing {
}

fn supports_renderer(&self, renderer: &str) -> bool {
renderer == "html" || renderer == "markdown"
renderer == "html" || renderer == "markdown" || renderer == "test"
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/mdbook-trpl-note/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl Preprocessor for TrplNote {
}

fn supports_renderer(&self, renderer: &str) -> bool {
renderer == "html" || renderer == "markdown"
renderer == "html" || renderer == "markdown" || renderer == "test"
}
}

Expand Down

0 comments on commit d10039f

Please sign in to comment.