Skip to content

Commit 7aafa74

Browse files
committed
Merge branch 'main' of github.com:quarto-dev/quarto-cli into main
2 parents ee77285 + 4d80019 commit 7aafa74

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/command/render/pandoc-html.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import {
2828
readHighlightingTheme,
2929
readTheme,
3030
} from "../../quarto-core/text-highlighting.ts";
31+
import { isHtmlOutput } from "../../config/format.ts";
3132

3233
// The output target for a sass bundle
3334
// (controls the overall style tag that is emitted)
@@ -199,8 +200,10 @@ export async function resolveSassBundles(
199200
);
200201
}
201202

202-
// We'll take care of text highlighting for HTML
203-
setTextHighlightStyle("none", extras);
203+
if (isHtmlOutput(pandoc, true)) {
204+
// We'll take care of text highlighting for HTML
205+
setTextHighlightStyle("none", extras);
206+
}
204207

205208
return extras;
206209
}

0 commit comments

Comments
 (0)