gnab / remark

A simple, in-browser, markdown-driven slideshow tool.
http://remarkjs.com
MIT License
12.68k stars 856 forks source link

New options: Custom clone function & disable presentation shortcuts #627

Closed dpecos closed 2 years ago

dpecos commented 4 years ago

For an application I'm working on, I use remark in an iframe, its contents being generate using JS, so the standard clone function (triggered with shortcut c) to create a new window didn't sufice (my iframe didn't have a proper src attribute and the markdown contents is being loaded using remark API, not from a dom element).

A second use case, is that in an specific scenario, I don't want to let the user trigger the 'presentation shortcuts' (i.e fullscreen, clone, mirror,...) so I've added a config parameter disablePresentationShortcuts to disable those.

johnbeech commented 3 years ago

Can the second use case be split out into a separate PR? Added some comments...