Skip to content
Snippets Groups Projects
Commit 7075bc2b authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

merge markdown in notes

parent c5fe9bd3
No related branches found
No related tags found
No related merge requests found
...@@ -205,7 +205,7 @@ If you're interested in using speaker notes, reveal.js comes with a Node server ...@@ -205,7 +205,7 @@ If you're interested in using speaker notes, reveal.js comes with a Node server
To include speaker notes in your presentation, simply add an `<aside class="notes">` element to any slide. These notes will be hidden in the main presentation view. To include speaker notes in your presentation, simply add an `<aside class="notes">` element to any slide. These notes will be hidden in the main presentation view.
It's also possible to write your notes with Markdown. To enable Markdown, simply add the ```data-markdown``` attribute to your ```<aside>``` elements and reveal.js will automatically load the JavaScript parser. It's also possible to write your notes with Markdown. To enable Markdown, add the ```data-markdown``` attribute to your note ```<aside>``` elements.
You'll also need to [install Node.js](http://nodejs.org/); then, install the server dependencies by running `npm install`. You'll also need to [install Node.js](http://nodejs.org/); then, install the server dependencies by running `npm install`.
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
nextindexh : nextindexh, nextindexh : nextindexh,
nextindexv : nextindexv, nextindexv : nextindexv,
socketId : socketId, socketId : socketId,
markdown : notes ? notes.getAttribute('data-markdown') != null : false markdown : notes ? typeof notes.getAttribute('data-markdown') === 'string' : false
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment