Skip to content

Commit f9a5413

Browse files
committed
Fix deprecated --highlight-style flag in preview-text.ts
Update to use --syntax-highlighting for Pandoc 3.8 compatibility.
1 parent b6f1245 commit f9a5413

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/preview/preview-text.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ async function textPreviewHtml(file: string, req: Request) {
150150
const cmd = [pandocBinaryPath()];
151151
cmd.push("--to", "html");
152152
cmd.push(
153-
"--highlight-style",
153+
"--syntax-highlighting",
154154
textHighlightThemePath("atom-one", darkMode ? "dark" : "light")!,
155155
);
156156
cmd.push("--standalone");
@@ -239,7 +239,7 @@ async function gfmPreview(file: string, request: Request) {
239239
cmd.push("--lua-filter");
240240
cmd.push(filter);
241241
if (highlightPath) {
242-
cmd.push("--highlight-style");
242+
cmd.push("--syntax-highlighting");
243243
cmd.push(highlightPath);
244244
}
245245
// Github renders math with MathJax now, so our preview mode does the same

0 commit comments

Comments
 (0)