Skip to content

Commit

Permalink
Merge pull request #3982 from rust-lang/preprocessors-support-test-re…
Browse files Browse the repository at this point in the history
…nderer

infra: support test renderer in mdbook preprocessors
  • Loading branch information
chriskrycho authored Jul 17, 2024
2 parents 9c974f1 + d10039f commit a7c750c
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 a7c750c

Please sign in to comment.