Skip to content

Commit 19360ed

Browse files
committed
revealjs 5 - ?view=print is similar to ?print-pdf
Update Quarto internal's plugins.
1 parent ebf01ef commit 19360ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/resources/formats/revealjs/plugins/line-highlight/line-highlight.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
window.QuartoLineHighlight = function () {
22
function isPrintView() {
3-
return /print-pdf/gi.test(window.location.search);
3+
return /print-pdf/gi.test(window.location.search) || /view=print/gi.test(window.location.search);
44
}
55

66
const delimiters = {

src/resources/formats/revealjs/plugins/support/support.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// catch all plugin for various quarto features
22
window.QuartoSupport = function () {
33
function isPrintView() {
4-
return /print-pdf/gi.test(window.location.search);
4+
return /print-pdf/gi.test(window.location.search) || /view=print/gi.test(window.location.search);
55
}
66

77
// helper for theme toggling

0 commit comments

Comments
 (0)