Skip to content

Commit

Permalink
restore support for markdown speaker notes
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed May 18, 2020
1 parent 13f7e69 commit f618de8
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/reveal.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function( revealElement, options ) {
const Reveal = {};

// The reveal.js version
const VERSION = '4.0.0-dev';
const VERSION = '4.0.0-rc.1';

// Configuration defaults, can be overridden at initialization time
let config,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reveal.js",
"version": "4.0.0-dev",
"version": "4.0.0-rc.1",
"description": "The HTML Presentation Framework",
"homepage": "https://revealjs.com",
"subdomain": "revealjs",
Expand Down
2 changes: 1 addition & 1 deletion plugin/notes/notes.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugin/notes/notes.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions plugin/notes/plugin.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import speakerViewHTML from './speaker-view.html';

import marked from 'marked'

/**
* Handles opening of and synchronization with the reveal.js
* notes window.
Expand All @@ -25,6 +27,7 @@ const Plugin = () => {
}

popup = window.open( 'about:blank', 'reveal.js - Notes', 'width=1100,height=700' );
popup.marked = marked;
popup.document.write( speakerViewHTML );

if( !popup ) {
Expand Down
1 change: 0 additions & 1 deletion plugin/notes/speaker-view.html
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,6 @@ <h4 class="label">Notes</h4>
<select class="speaker-layout-dropdown"></select>
</div>

<script src="../../plugin/markdown/marked.js"></script>
<script>

(function() {
Expand Down

0 comments on commit f618de8

Please sign in to comment.