We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb6a2a4 commit 4d80019Copy full SHA for 4d80019
src/command/render/pandoc-html.ts
@@ -28,6 +28,7 @@ import {
28
readHighlightingTheme,
29
readTheme,
30
} from "../../quarto-core/text-highlighting.ts";
31
+import { isHtmlOutput } from "../../config/format.ts";
32
33
// The output target for a sass bundle
34
// (controls the overall style tag that is emitted)
@@ -199,8 +200,10 @@ export async function resolveSassBundles(
199
200
);
201
}
202
- // We'll take care of text highlighting for HTML
203
- setTextHighlightStyle("none", extras);
+ if (isHtmlOutput(pandoc, true)) {
204
+ // We'll take care of text highlighting for HTML
205
+ setTextHighlightStyle("none", extras);
206
+ }
207
208
return extras;
209
0 commit comments