aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/markdown/example.html7
-rw-r--r--plugin/markdown/example.md5
-rwxr-xr-xplugin/math/math.js8
-rw-r--r--plugin/multiplex/package.json2
-rw-r--r--plugin/notes/notes.js19
-rw-r--r--plugin/print-pdf/print-pdf.js2
-rw-r--r--plugin/search/search.js1
7 files changed, 22 insertions, 22 deletions
diff --git a/plugin/markdown/example.html b/plugin/markdown/example.html
index 36f6a51..300e39e 100644
--- a/plugin/markdown/example.html
+++ b/plugin/markdown/example.html
@@ -99,6 +99,13 @@
</script>
</section>
+ <!-- Images -->
+ <section data-markdown>
+ <script type="text/template">
+ ![Sample image](https://s3.amazonaws.com/static.slid.es/logo/v2/slides-symbol-512x512.png)
+ </script>
+ </section>
+
</div>
</div>
diff --git a/plugin/markdown/example.md b/plugin/markdown/example.md
index 6f6f577..89c7534 100644
--- a/plugin/markdown/example.md
+++ b/plugin/markdown/example.md
@@ -29,3 +29,8 @@ Content 3.1
## External 3.2
Content 3.2
+
+
+## External 3.3
+
+![External Image](https://s3.amazonaws.com/static.slid.es/logo/v2/slides-symbol-512x512.png)
diff --git a/plugin/math/math.js b/plugin/math/math.js
index e3b4089..7867376 100755
--- a/plugin/math/math.js
+++ b/plugin/math/math.js
@@ -9,15 +9,15 @@ var RevealMath = window.RevealMath || (function(){
var options = Reveal.getConfig().math || {};
options.mathjax = options.mathjax || 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js';
options.config = options.config || 'TeX-AMS_HTML-full';
+ options.tex2jax = options.tex2jax || {
+ inlineMath: [['$','$'],['\\(','\\)']] ,
+ skipTags: ['script','noscript','style','textarea','pre'] };
loadScript( options.mathjax + '?config=' + options.config, function() {
MathJax.Hub.Config({
messageStyle: 'none',
- tex2jax: {
- inlineMath: [['$','$'],['\\(','\\)']] ,
- skipTags: ['script','noscript','style','textarea','pre']
- },
+ tex2jax: options.tex2jax,
skipStartupTypeset: true
});
diff --git a/plugin/multiplex/package.json b/plugin/multiplex/package.json
index 368bfd6..bbed77a 100644
--- a/plugin/multiplex/package.json
+++ b/plugin/multiplex/package.json
@@ -2,7 +2,7 @@
"name": "reveal-js-multiplex",
"version": "1.0.0",
"description": "reveal.js multiplex server",
- "homepage": "http://lab.hakim.se/reveal-js",
+ "homepage": "http://revealjs.com",
"scripts": {
"start": "node index.js"
},
diff --git a/plugin/notes/notes.js b/plugin/notes/notes.js
index 80fb6e2..3f00eb6 100644
--- a/plugin/notes/notes.js
+++ b/plugin/notes/notes.js
@@ -131,22 +131,9 @@ var RevealNotes = (function() {
}
// Open the notes when the 's' key is hit
- document.addEventListener( 'keydown', function( event ) {
- // Disregard the event if the target is editable or a
- // modifier is present
- if ( document.querySelector( ':focus' ) !== null || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey ) return;
-
- // Disregard the event if keyboard is disabled
- if ( Reveal.getConfig().keyboard === false ) return;
-
- if( event.keyCode === 83 ) {
- event.preventDefault();
- openNotes();
- }
- }, false );
-
- // Show our keyboard shortcut in the reveal.js help overlay
- if( window.Reveal ) Reveal.registerKeyboardShortcut( 'S', 'Speaker notes view' );
+ Reveal.addKeyBinding({keyCode: 83, key: 'S', description: 'Speaker notes view'}, function() {
+ openNotes();
+ } );
}
diff --git a/plugin/print-pdf/print-pdf.js b/plugin/print-pdf/print-pdf.js
index 9ffc261..15ce43e 100644
--- a/plugin/print-pdf/print-pdf.js
+++ b/plugin/print-pdf/print-pdf.js
@@ -2,7 +2,7 @@
* phantomjs script for printing presentations to PDF.
*
* Example:
- * phantomjs print-pdf.js "http://lab.hakim.se/reveal-js?print-pdf" reveal-demo.pdf
+ * phantomjs print-pdf.js "http://revealjs.com?print-pdf" reveal-demo.pdf
*
* @author Manuel Bieh (https://github.com/manuelbieh)
* @author Hakim El Hattab (https://github.com/hakimel)
diff --git a/plugin/search/search.js b/plugin/search/search.js
index b0be2be..f7e5c2f 100644
--- a/plugin/search/search.js
+++ b/plugin/search/search.js
@@ -200,6 +200,7 @@ function Hilitor(id, tag)
toggleSearch();
}
}, false );
+ if( window.Reveal ) Reveal.registerKeyboardShortcut( 'Ctrl-Shift-F', 'Search' );
closeSearch();
return { open: openSearch };
})();