Skip to content

Commit 131a91a

Browse files
authored
Merge pull request #11153 from quarto-dev/bugfix/2699
Redirect streams on `quarto pandoc`
2 parents ce7182e + 57f5053 commit 131a91a

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

news/changelog-1.6.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ All changes included in 1.6:
102102
- Upgrade `mermaidjs` to 11.2.0.
103103
- Upgrade Pandoc to 3.4.
104104
- Upgrade `deno` to 1.46.3.
105+
- ([#2699])(https://github.com/quarto-dev/quarto-cli/issues/2699)): Respect input/output streams in `quarto pandoc`.
105106
- ([#10162](https://github.com/quarto-dev/quarto-cli/issues/10162)): Use Edge on `macOS` as a Chromium browser when available.
106107
- ([#10235](https://github.com/quarto-dev/quarto-cli/issues/10235)): Configure the CI schedule trigger to activate exclusively for the upstream repository.
107108
- ([#10295](https://github.com/quarto-dev/quarto-cli/issues/10235)): Fix regression to return error status to shell when `CommandError` is thrown.

src/quarto.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,16 @@ export async function quarto(
6868

6969
// passthrough to pandoc
7070
if (args[0] === "pandoc" && args[1] !== "help") {
71-
const result = await execProcess({
72-
cmd: [pandocBinaryPath(), ...args.slice(1)],
73-
env,
74-
});
71+
const result = await execProcess(
72+
{
73+
cmd: [pandocBinaryPath(), ...args.slice(1)],
74+
env,
75+
},
76+
undefined,
77+
undefined,
78+
undefined,
79+
true,
80+
);
7581
Deno.exit(result.code);
7682
}
7783

0 commit comments

Comments
 (0)