Skip to content

Commit 4fb5719

Browse files
authored
Merge pull request #3944 from rust-lang/nostarch-preprocessors
infra: correctly support preprocessors for nostarch
2 parents 17533f9 + 60993ce commit 4fb5719

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

packages/mdbook-trpl-listing/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl Preprocessor for TrplListing {
9898
}
9999

100100
fn supports_renderer(&self, renderer: &str) -> bool {
101-
renderer == "html"
101+
renderer == "html" || renderer == "markdown"
102102
}
103103
}
104104

packages/mdbook-trpl-note/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl Preprocessor for TrplNote {
4949
}
5050

5151
fn supports_renderer(&self, renderer: &str) -> bool {
52-
renderer == "html"
52+
renderer == "html" || renderer == "markdown"
5353
}
5454
}
5555

tools/nostarch.sh

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ set -eu
44

55
cargo build --release
66

7+
cd packages/mdbook-trpl-listing
8+
cargo install --locked --path .
9+
10+
cd ../mdbook-trpl-note
11+
cargo install --locked --path .
12+
13+
cd ../..
14+
715
mkdir -p tmp
816
rm -rf tmp/*.md
917
rm -rf tmp/markdown

0 commit comments

Comments
 (0)