Skip to content

Commit

Permalink
updated markdown references in notes plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Oct 28, 2012
1 parent e693717 commit 605f714
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ Reveal.js doesn't _rely_ on any third party scripts to work but a few optional l
```javascript
Reveal.initialize({
dependencies: [
// Syntax highlight for <code> elements
{ src: 'lib/js/highlight.js', async: true, callback: function() { window.hljs.initHighlightingOnLoad(); } },
// Cross-browser shim that fully implements classList - https://github.com/eligrey/classList.js/
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } }
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
// Interpret Markdown in <section> elements
{ src: 'lib/js/data-markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'lib/js/showdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/showdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
// Syntax highlight for <code> elements
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
// Zoom in and out with Alt+click
{ src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
// Speaker notes
Expand Down
2 changes: 1 addition & 1 deletion plugin/notes-server/notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
<div id="notes"></div>

<script src="/socket.io/socket.io.js"></script>
<script src="/lib/js/showdown.js"></script>
<script src="/plugin/markdown/showdown.js"></script>

<script>
var socketId = '{{socketId}}';
Expand Down
3 changes: 2 additions & 1 deletion plugin/notes/notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
</div>
<div id="notes"></div>

<script src="../../lib/js/showdown.js"></script>
<script src="../../plugin/markdown/showdown.js"></script>
<script>
window.addEventListener( 'load', function() {

Expand All @@ -120,6 +120,7 @@
}

// Update the note slides
console.log(currentSlide.contentWindow);
currentSlide.contentWindow.Reveal.slide( data.indexh, data.indexv );
nextSlide.contentWindow.Reveal.slide( data.nextindexh, data.nextindexv );

Expand Down

0 comments on commit 605f714

Please sign in to comment.