From b2d532ea28eaaf0b7b2cf225c713c8a8d3f4a3bf Mon Sep 17 00:00:00 2001 From: Benjamin Tan Date: Thu, 8 Feb 2018 20:54:21 +0800 Subject: Allow users to customise MathJax options. Ref. #1856, #2006, #2045. This is a more open approach to allow customisation of all MathJax options instead of select options only. --- README.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index c0d019a..d935a82 100644 --- a/README.md +++ b/README.md @@ -1203,6 +1203,8 @@ Reveal.initialize({ math: { mathjax: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js', config: 'TeX-AMS_HTML-full' // See http://docs.mathjax.org/en/latest/config-files.html + // pass other options into `MathJax.Hub.Config()` + TeX: { Macros: macros } }, dependencies: [ -- cgit v1.2.3 From b0ebb7deedb1762ff4b50563e2f1db7d3f12f8a2 Mon Sep 17 00:00:00 2001 From: Lele Date: Thu, 16 Aug 2018 14:34:46 +0200 Subject: Fixed broken link to markdown options doc Fixed broken link to markdown options doc --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 8890b9e..0aff6fc 100644 --- a/README.md +++ b/README.md @@ -175,7 +175,7 @@ We use [marked](https://github.com/chjj/marked) to parse Markdown. To customise ```javascript Reveal.initialize({ // Options which are passed into marked - // See https://github.com/chjj/marked#options-1 + // See https://marked.js.org/#/USING_ADVANCED.md#options markdown: { smartypants: true } -- cgit v1.2.3 From 01ceba3f732c853c444c53a5723aff4de3b762a5 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Thu, 4 Oct 2018 14:48:39 +0200 Subject: remove mention of head.js in readme --- README.md | 2 -- 1 file changed, 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 20efcdf..67c9654 100644 --- a/README.md +++ b/README.md @@ -451,8 +451,6 @@ You can add your own extensions using the same syntax. The following properties - **callback**: [optional] Function to execute when the script has loaded - **condition**: [optional] Function which must return true for the script to be loaded -To load these dependencies, reveal.js requires [head.js](http://headjs.com/) *(a script loading library)* to be loaded before reveal.js. - ### Ready Event A `ready` event is fired when reveal.js has loaded all non-async dependencies and is ready to start navigating. To check if reveal.js is already 'ready' you can call `Reveal.isReady()`. -- cgit v1.2.3 From 196d2a39712760b7671fa2feb54e1883a97796e5 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Thu, 4 Oct 2018 14:54:35 +0200 Subject: remove classlist polyfill, cross browser support is good enough now --- README.md | 3 --- 1 file changed, 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 67c9654..02b570a 100644 --- a/README.md +++ b/README.md @@ -423,9 +423,6 @@ Reveal.js doesn't _rely_ on any third party scripts to work but a few optional l ```javascript Reveal.initialize({ dependencies: [ - // Cross-browser shim that fully implements classList - https://github.com/eligrey/classList.js/ - { src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } }, - // Interpret Markdown in
elements { src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, { src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, -- cgit v1.2.3 From 7b707696b40a98e717d91e24162869f6d9c22957 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Mon, 8 Oct 2018 09:58:06 +0200 Subject: automatically hide the mouse pointer after 5s of inactivity (#1837) --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 734036b..72d2ac9 100644 --- a/README.md +++ b/README.md @@ -326,6 +326,12 @@ Reveal.initialize({ // Enable slide navigation via mouse wheel mouseWheel: false, + // Hide cursor if inactive + hideInactiveCursor: true, + + // Time before the cursor is hidden (in ms) + hideCursorTime: 5000, + // Hides the address bar on mobile devices hideAddressBar: true, -- cgit v1.2.3 From 62cd74a890ea3b150c77482d746a716d5001a323 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Tue, 9 Oct 2018 11:08:09 +0200 Subject: add note about lazy loading iframes #1672 #1938 --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 72d2ac9..c60e6a4 100644 --- a/README.md +++ b/README.md @@ -517,7 +517,7 @@ If there's some part of your content that needs to remain accessible to touch ev When working on presentation with a lot of media or iframe content it's important to load lazily. Lazy loading means that reveal.js will only load content for the few slides nearest to the current slide. The number of slides that are preloaded is determined by the `viewDistance` configuration option. -To enable lazy loading all you need to do is change your `src` attributes to `data-src` as shown below. This is supported for image, video, audio and iframe elements. Lazy loaded iframes will also unload when the containing slide is no longer visible. +To enable lazy loading all you need to do is change your `src` attributes to `data-src` as shown below. This is supported for image, video, audio and iframe elements. ```html
@@ -530,6 +530,12 @@ To enable lazy loading all you need to do is change your `src` attributes to `da
``` +#### Lazy Loading Iframes +Note that lazy loaded iframes ignore the `viewDistance` configuration and will only load when their containing slide becomes visible. Iframes are also unloaded as soon as the slide is hidden. + +When we lazy load a video or audio element, reveal.js won't start playing that content until the slide becomes visible. However there is no way to control this for an iframe since that could contain any kind of content. That means if we loaded an iframe before the slide is visible on screen it could begin playing media and sound in the background. + + ### API The `Reveal` object exposes a JavaScript API for controlling navigation and reading state: -- cgit v1.2.3 From 8ac3383bee936aaf4939bf8d4cb30d5998ceff2b Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Fri, 16 Nov 2018 10:39:43 +0100 Subject: add getRevealElement API method --- README.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index c60e6a4..d8960b1 100644 --- a/README.md +++ b/README.md @@ -592,6 +592,9 @@ Reveal.isLastSlide(); Reveal.isOverview(); Reveal.isPaused(); Reveal.isAutoSliding(); + +// Returns the top-level DOM element +getRevealElement(); //
...
``` ### Custom Key Bindings -- cgit v1.2.3 From fd6245bb281d6e4bf278628f6fe63a2d15be0993 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sun, 2 Dec 2018 16:46:00 -0800 Subject: Add new 'hash: true' option which uses replaceState for url Resolves #2211 --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index d8960b1..e32478a 100644 --- a/README.md +++ b/README.md @@ -259,9 +259,12 @@ Reveal.initialize({ // Display the page number of the current slide slideNumber: false, - // Push each slide change to the browser history + // Push each slide change to the browser history. Implies `hash: true` history: false, + // Change the hash when changing slides -- impacts browser history with `history: true` + hash: false, + // Enable keyboard shortcuts for navigation keyboard: true, -- cgit v1.2.3 From dedad930e321860ab339816ee2fc1d18df381bf4 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Wed, 19 Dec 2018 10:37:30 +0100 Subject: add section about vertical slides and `gridNavigation` to readme --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 69167ee..4db4eca 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ reveal.js comes with a broad range of features including [nested slides](https:/ - [Ready Event](#ready-event) - [Auto-sliding](#auto-sliding) - [Keyboard Bindings](#keyboard-bindings) +- [Vertical Slide Navigation](#vertical-slide-navigation) - [Touch Navigation](#touch-navigation) - [Lazy Loading](#lazy-loading) - [API](#api) @@ -279,6 +280,11 @@ Reveal.initialize({ // Change the presentation direction to be RTL rtl: false, + + // When this is enabled, stepping left/right from a vertical stack + // to an adjacent vertical stack will land you at the same vertical + // index instead of the top. + gridNavigation: false, // Randomizes the order of slides each time the presentation loads shuffle: false, @@ -507,6 +513,21 @@ Reveal.configure({ }); ``` +### Vertical Slide Navigation + +Slides can be nested within other slides to create vertical stacks (see [Markup](#markup)). When presenting, you use the left/right arrows to step through the main (horizontal) slides. When you arrive at a vertical stack you can optionally press the up/down arrows to view the vertical slides or skip past them by pressing the right arrow. Here's an example showing a bird's-eye view of what this looks like in action: + + + +#### Grid Navigation +If you are on a vertical slide and step right onto an adjacent vertical stack, you'll arrive at the top of that stack. Consider a deck with six slides organized in two stacks like this: +``` +1.1 2.1 +1.2 2.2 +1.3 2.3 +``` +If you're on slide 1.3 and navigate right, you will normally move from 1.3 -> 2.1. If you prefer remaining at the same vertical index and going directly from 1.3 -> 2.3 you can enable the `gridNavigation` config option: `Reveal.configure({ gridNavigation: true })`. + ### Touch Navigation You can swipe to navigate through a presentation on any touch-enabled device. Horizontal swipes change between horizontal slides, vertical swipes change between vertical slides. If you wish to disable this you can set the `touch` config option to false when initializing reveal.js. -- cgit v1.2.3 From b645828707cd9752055f2e2c237f977207c4ea73 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Wed, 19 Dec 2018 11:04:29 +0100 Subject: ensure history api is available, default to hash: true with no history in demo #2286 --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 00fe8d8..bd3965f 100644 --- a/README.md +++ b/README.md @@ -260,12 +260,13 @@ Reveal.initialize({ // Display the page number of the current slide slideNumber: false, - // Push each slide change to the browser history. Implies `hash: true` - history: false, - - // Change the hash when changing slides -- impacts browser history with `history: true` + // Add the current slide number to the URL hash so that reloading the + // page/copying the URL will return you to the same slide hash: false, + // Push each slide change to the browser history. Implies `hash: true` + history: false, + // Enable keyboard shortcuts for navigation keyboard: true, @@ -283,7 +284,7 @@ Reveal.initialize({ // Change the presentation direction to be RTL rtl: false, - + // When this is enabled, stepping left/right from a vertical stack // to an adjacent vertical stack will land you at the same vertical // index instead of the top. -- cgit v1.2.3 From c36caef5e7f2a448df8503ff8eb37defea297152 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Thu, 10 Jan 2019 14:58:38 +0100 Subject: 2019 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index bd3965f..8028e82 100644 --- a/README.md +++ b/README.md @@ -1349,4 +1349,4 @@ If you want to include math inside of a presentation written in Markdown you nee MIT licensed -Copyright (C) 2018 Hakim El Hattab, http://hakim.se +Copyright (C) 2019 Hakim El Hattab, http://hakim.se -- cgit v1.2.3 From abee356e42bd27a06db3f1308fd7b751de646102 Mon Sep 17 00:00:00 2001 From: Mario Wolff Date: Tue, 15 Jan 2019 13:13:19 +0100 Subject: emmit resize event if scale changed --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index a301d5f..4804c29 100644 --- a/README.md +++ b/README.md @@ -958,6 +958,14 @@ Limitations: - Only direct descendants of a slide section can be stretched - Only one descendant per slide section can be stretched +### Resize Event + +When reveal.js changes the scale of the slides it fires an resize event. You can subscribe to the event to resize your elements accordingly. + +```javascript +Reveal.addEventListener( 'overviewshown', function( event ) { /* console.log(event.scale,event.oldscale,event.size); */ } ); +``` + ### postMessage API The framework has a built-in postMessage API that can be used when communicating with a presentation inside of another window. Here's an example showing how you'd make a reveal.js instance in the given window proceed to slide 2: -- cgit v1.2.3 From 126365627b30e66b4dc3e1407d1b457094f6cbc2 Mon Sep 17 00:00:00 2001 From: Mario Wolff Date: Tue, 15 Jan 2019 13:18:55 +0100 Subject: fixed documentation on resize event --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 4804c29..9bf6b22 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ reveal.js comes with a broad range of features including [nested slides](https:/ - [Fullscreen mode](#fullscreen-mode) - [Embedded media](#embedded-media) - [Stretching elements](#stretching-elements) + - [Resize Event](#resize-event) - [postMessage API](#postmessage-api) - [PDF Export](#pdf-export) - [Theming](#theming) @@ -963,7 +964,7 @@ Limitations: When reveal.js changes the scale of the slides it fires an resize event. You can subscribe to the event to resize your elements accordingly. ```javascript -Reveal.addEventListener( 'overviewshown', function( event ) { /* console.log(event.scale,event.oldscale,event.size); */ } ); +Reveal.addEventListener( 'resize', function( event ) { /* console.log(event.scale,event.oldscale,event.size); */ } ); ``` ### postMessage API -- cgit v1.2.3 From baac3413ed2ede52359edcf03d14279bfa5d8ec7 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Tue, 22 Jan 2019 15:05:07 +0100 Subject: upgrade to socket.io 2.2.0 #2257 --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 8028e82..d137630 100644 --- a/README.md +++ b/README.md @@ -1205,7 +1205,7 @@ Reveal.initialize({ // Don't forget to add the dependencies dependencies: [ - { src: '//cdn.socket.io/socket.io-1.3.5.js', async: true }, + { src: '//cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js', async: true }, { src: 'plugin/multiplex/master.js', async: true }, // and if you want speaker notes @@ -1235,7 +1235,7 @@ Reveal.initialize({ // Don't forget to add the dependencies dependencies: [ - { src: '//cdn.socket.io/socket.io-1.3.5.js', async: true }, + { src: '//cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js', async: true }, { src: 'plugin/multiplex/client.js', async: true } // other dependencies... @@ -1277,7 +1277,7 @@ Reveal.initialize({ // Don't forget to add the dependencies dependencies: [ - { src: '//cdn.socket.io/socket.io-1.3.5.js', async: true }, + { src: '//cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js', async: true }, { src: 'plugin/multiplex/client.js', async: true } // other dependencies... @@ -1301,7 +1301,7 @@ Reveal.initialize({ // Don't forget to add the dependencies dependencies: [ - { src: '//cdn.socket.io/socket.io-1.3.5.js', async: true }, + { src: '//cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js', async: true }, { src: 'plugin/multiplex/master.js', async: true }, { src: 'plugin/multiplex/client.js', async: true } -- cgit v1.2.3 From 2fa3ab6a6bf9083877dfe46257857a2ab019c293 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Wed, 23 Jan 2019 10:14:40 +0100 Subject: documentation for navigationMode #2307 --- README.md | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index d137630..ff58915 100644 --- a/README.md +++ b/README.md @@ -285,10 +285,8 @@ Reveal.initialize({ // Change the presentation direction to be RTL rtl: false, - // When this is enabled, stepping left/right from a vertical stack - // to an adjacent vertical stack will land you at the same vertical - // index instead of the top. - gridNavigation: false, + // . + navigationMode: 'default', // Randomizes the order of slides each time the presentation loads shuffle: false, @@ -523,15 +521,15 @@ Slides can be nested within other slides to create vertical stacks (see [Markup] -#### Grid Navigation -If you are on a vertical slide and step right onto an adjacent vertical stack, you'll arrive at the top of that stack. Consider a deck with six slides organized in two stacks like this: -``` -1.1 2.1 -1.2 2.2 -1.3 2.3 -``` -If you're on slide 1.3 and navigate right, you will normally move from 1.3 -> 2.1. If you prefer remaining at the same vertical index and going directly from 1.3 -> 2.3 you can enable the `gridNavigation` config option: `Reveal.configure({ gridNavigation: true })`. - +#### Navigation Mode +You can finetune the reveal.js navigation behavior by using the `navigationMode` config option. This option supports the following values: + +| Value | Description | +| :--------------------------- | :---------- | +| default | Left/right arrow keys step between horizontal slides. Up/down arrow keys step between vertical slides. Space key steps through all slides (both horizontal and vertical). | +| linear | Removes the up/down arrows. Left/right arrows step through all slides (both horizontal and vertical). | +| grid | When this is enabled, stepping left/right from a vertical stack to an adjacent vertical stack will land you at the same vertical index.

Consider a deck with six slides ordered in two vertical stacks:
1.1 2.1
1.2 2.2
1.3 2.3

If you're on slide 1.3 and navigate right, you will normally move from 1.3 -> 2.1. With navigationMode set to "grid" the same navigation takes you from 1.3 -> 2.3. | + ### Touch Navigation You can swipe to navigate through a presentation on any touch-enabled device. Horizontal swipes change between horizontal slides, vertical swipes change between vertical slides. If you wish to disable this you can set the `touch` config option to false when initializing reveal.js. -- cgit v1.2.3 From 23c2d2795cacc5f01139a41528682aadff41819d Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Wed, 23 Jan 2019 10:43:05 +0100 Subject: navigationMode documentation improvements --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index ff58915..170fe48 100644 --- a/README.md +++ b/README.md @@ -285,7 +285,7 @@ Reveal.initialize({ // Change the presentation direction to be RTL rtl: false, - // . + // See https://github.com/hakimel/reveal.js/#navigation-mode navigationMode: 'default', // Randomizes the order of slides each time the presentation loads @@ -522,13 +522,13 @@ Slides can be nested within other slides to create vertical stacks (see [Markup] #### Navigation Mode -You can finetune the reveal.js navigation behavior by using the `navigationMode` config option. This option supports the following values: +You can finetune the reveal.js navigation behavior by using the `navigationMode` config option. Note that these options are only useful for presnetations that use a mix of horizontal and vertical slides. The following navigation modes are available: | Value | Description | | :--------------------------- | :---------- | | default | Left/right arrow keys step between horizontal slides. Up/down arrow keys step between vertical slides. Space key steps through all slides (both horizontal and vertical). | | linear | Removes the up/down arrows. Left/right arrows step through all slides (both horizontal and vertical). | -| grid | When this is enabled, stepping left/right from a vertical stack to an adjacent vertical stack will land you at the same vertical index.

Consider a deck with six slides ordered in two vertical stacks:
1.1 2.1
1.2 2.2
1.3 2.3

If you're on slide 1.3 and navigate right, you will normally move from 1.3 -> 2.1. With navigationMode set to "grid" the same navigation takes you from 1.3 -> 2.3. | +| grid | When this is enabled, stepping left/right from a vertical stack to an adjacent vertical stack will land you at the same vertical index.

Consider a deck with six slides ordered in two vertical stacks:
`1.1`    `2.1`
`1.2`    `2.2`
`1.3`    `2.3`

If you're on slide 1.3 and navigate right, you will normally move from 1.3 -> 2.1. With navigationMode set to "grid" the same navigation takes you from 1.3 -> 2.3. | ### Touch Navigation -- cgit v1.2.3 From 812b802c1cf896f2af44cd87eef63be4ecf98842 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Thu, 31 Jan 2019 20:13:32 +0100 Subject: resize event tweaks for #2300 --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 8439017..b8ad6a0 100644 --- a/README.md +++ b/README.md @@ -994,10 +994,12 @@ Limitations: ### Resize Event -When reveal.js changes the scale of the slides it fires an resize event. You can subscribe to the event to resize your elements accordingly. +When reveal.js changes the scale of the slides it fires a resize event. You can subscribe to the event to resize your elements accordingly. ```javascript -Reveal.addEventListener( 'resize', function( event ) { /* console.log(event.scale,event.oldscale,event.size); */ } ); +Reveal.addEventListener( 'resize', function( event ) { + // event.scale, event.oldScale, event.size +} ); ``` ### postMessage API -- cgit v1.2.3 From ce53e63b5b725243f1745971f632d4b46763a344 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Fri, 1 Feb 2019 10:15:10 +0100 Subject: documentation for #2315 --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index b8ad6a0..53183ad 100644 --- a/README.md +++ b/README.md @@ -937,6 +937,12 @@ Reveal.configure({ slideNumber: true }); // "c/t": flattened slide number / total slides Reveal.configure({ slideNumber: 'c/t' }); +// You can provide a function to fully customize the number: +Reveal.configure({ slideNumber: function() { + // Ignore numbering of vertical slides + return [ Reveal.getIndices().h ]; +}}); + // Control which views the slide number displays on using the "showSlideNumber" value: // "all": show on all views (default) // "speaker": only show slide numbers on speaker notes view -- cgit v1.2.3 From 7867b77833b8502fa59267e9b5cc42994fb91776 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Fri, 1 Feb 2019 10:16:32 +0100 Subject: indentation fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 53183ad..9f74744 100644 --- a/README.md +++ b/README.md @@ -939,7 +939,7 @@ Reveal.configure({ slideNumber: 'c/t' }); // You can provide a function to fully customize the number: Reveal.configure({ slideNumber: function() { - // Ignore numbering of vertical slides + // Ignore numbering of vertical slides return [ Reveal.getIndices().h ]; }}); -- cgit v1.2.3 From dd6f8b402c13fd1a9759de16055a8e7916b9d41c Mon Sep 17 00:00:00 2001 From: Mike Hatch <4390485+mikeshatch@users.noreply.github.com> Date: Mon, 4 Mar 2019 12:24:04 -0600 Subject: Fixed a couple of typos --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index a301d5f..d28a2cb 100644 --- a/README.md +++ b/README.md @@ -994,7 +994,7 @@ Reveal.initialize({ ## PDF Export -Presentations can be exported to PDF via a special print stylesheet. This feature requires that you use [Google Chrome](http://google.com/chrome) or [Chromium](https://www.chromium.org/Home) and to be serving the presentation from a webserver. +Presentations can be exported to PDF via a special print stylesheet. This feature requires that you use [Google Chrome](http://google.com/chrome) or [Chromium](https://www.chromium.org/Home) and to be serving the presentation from a web server. Here's an example of an exported presentation that's been uploaded to SlideShare: http://www.slideshare.net/hakimel/revealjs-300. ### Separate pages for fragments @@ -1302,7 +1302,7 @@ Reveal.initialize({ Read MathJax's documentation if you need [HTTPS delivery](http://docs.mathjax.org/en/latest/start.html#secure-access-to-the-cdn) or serving of [specific versions](http://docs.mathjax.org/en/latest/configuration.html#loading-mathjax-from-the-cdn) for stability. #### MathJax in Markdown -If you want to include math inside of a presentation written in Markdown you need to wrap the forumla in backticks. This prevents syntax conflicts between LaTeX and Markdown. For example: +If you want to include math inside of a presentation written in Markdown you need to wrap the formula in backticks. This prevents syntax conflicts between LaTeX and Markdown. For example: ``` `$$ J(\theta_0,\theta_1) = \sum_{i=0} $$` -- cgit v1.2.3 From fbbae1dc55134d014a5a0df2e800d711e087b48f Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Tue, 12 Mar 2019 11:26:10 +0100 Subject: switch to monokai as default syntax highlight theme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 5aa9770..4c720e2 100644 --- a/README.md +++ b/README.md @@ -897,7 +897,7 @@ Reveal.addEventListener( 'fragmenthidden', function( event ) { ### Code syntax highlighting -By default, Reveal is configured with [highlight.js](https://highlightjs.org/) for code syntax highlighting. To enable syntax highlighting, you'll have to load the highlight plugin ([plugin/highlight/highlight.js](plugin/highlight/highlight.js)) and a highlight.js CSS theme (Reveal comes packaged with the zenburn theme: [lib/css/zenburn.css](lib/css/zenburn.css)). +By default, Reveal is configured with [highlight.js](https://highlightjs.org/) for code syntax highlighting. To enable syntax highlighting, you'll have to load the highlight plugin ([plugin/highlight/highlight.js](plugin/highlight/highlight.js)) and a highlight.js CSS theme (Reveal comes packaged with the Monokai themes: [lib/css/monokai.css](lib/css/monokai.css)). ```javascript Reveal.initialize({ -- cgit v1.2.3