We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3eb2159 commit 1892fe7Copy full SHA for 1892fe7
1 file changed
public/js/slide.js
@@ -107,13 +107,21 @@ window.viewAjaxCallback = function () {
107
};
108
109
function renderSlide(event) {
110
- var markdown = $(event.currentSlide);
111
- if (!markdown.attr('data-rendered')) {
+ if (window.location.search.match( /print-pdf/gi )) {
+ var slides = $('.slides');
112
var title = document.title;
113
- finishView(markdown);
114
- markdown.attr('data-rendered', 'true');
+ finishView(slides);
115
document.title = title;
116
Reveal.layout();
+ } else {
117
+ var markdown = $(event.currentSlide);
118
+ if (!markdown.attr('data-rendered')) {
119
+ var title = document.title;
120
+ finishView(markdown);
121
+ markdown.attr('data-rendered', 'true');
122
+ document.title = title;
123
+ Reveal.layout();
124
+ }
125
}
126
127
0 commit comments