浏览代码

Update README.md to include block for pdf printing

gilxa1226 7 年之前
父节点
当前提交
d7b34b6e0f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -849,7 +849,7 @@ Here's an example of an exported presentation that's been uploaded to SlideShare
 
 In order to enable PDF print capability in your presentation, the following code must be inserted in the HEAD section of your HTML document.
 
-'''html
+```html
 <!-- Printing and PDF exports -->
 <script>
 	var link = document.createElement( 'link' );
@@ -858,7 +858,7 @@ In order to enable PDF print capability in your presentation, the following code
 	link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
 	document.getElementsByTagName( 'head' )[0].appendChild( link );
 </script>
-'''
+```
 
 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.