Skip to content

Commit d7b34b6

Browse files
authored
Update README.md to include block for pdf printing
1 parent bcfb656 commit d7b34b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ Here's an example of an exported presentation that's been uploaded to SlideShare
849849

850850
In order to enable PDF print capability in your presentation, the following code must be inserted in the HEAD section of your HTML document.
851851

852-
'''html
852+
```html
853853
<!-- Printing and PDF exports -->
854854
<script>
855855
var link = document.createElement( 'link' );
@@ -858,7 +858,7 @@ In order to enable PDF print capability in your presentation, the following code
858858
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
859859
document.getElementsByTagName( 'head' )[0].appendChild( link );
860860
</script>
861-
'''
861+
```
862862

863863
Export dimensions are inferred from the configured [presentation size](#presentation-size). Slides that are too tall to fit within a single page will expand onto multiple pages. You can limit how many pages a slide may expand onto using the `pdfMaxPagesPerSlide` config option, for example `Reveal.configure({ pdfMaxPagesPerSlide: 1 })` ensures that no slide ever grows to more than one printed page.
864864

0 commit comments

Comments
 (0)