Skip to content

Commit b340ca5

Browse files
committed
prefer text/latex and application/pdf mime types when rendering latex
1 parent 091f575 commit b340ca5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/core/jupyter/display-data.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ export function displayDataMimeType(
7575
kTextHtml,
7676
);
7777
} else if (options.toLatex) {
78-
displayPriority.push(
78+
// latex and pdf should be preferred over the other mime types
79+
displayPriority.unshift(
7980
kTextLatex,
8081
kApplicationPdf,
8182
);

0 commit comments

Comments
 (0)