Skip to content
Permalink
Browse files
Add an option to exclude presenter notes
This PR adds a configuration setting that allows you to exclude presenter notes from all slides. For example:

```js
var slideshow = remark.create({
	includePresenterNotes: false,
});
```

This feature is useful if you only want to publish the slides, without the notes. By default, notes will be include if the options is not present or explicitly set to true.
  • Loading branch information
peterj committed Oct 30, 2019
1 parent a5a3c67 commit 8edb82ce8aca5f98b3a8193fbd392d034b4dc84e
Showing 1 changed file with 4 additions and 0 deletions.
@@ -219,6 +219,10 @@ function createSlides (slideshowSource, options) {
slides.byNumber[slideNumber] = [];
}

if (options.includePresenterNotes !== undefined && !options.includePresenterNotes) {
slide.notes = '';
}

slideViewModel = new Slide(slides.length, slideNumber, slide, template);

if (slide.properties.name) {

0 comments on commit 8edb82c

Please sign in to comment.