mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-01-17 13:28:29 +01:00
md plugin api works even if deck isn't available #3517
This commit is contained in:
parent
010f06c339
commit
9d1c7e21b6
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -95,7 +95,7 @@ const Plugin = () => {
|
||||
* values for what's not defined.
|
||||
*/
|
||||
function getSlidifyOptions( options ) {
|
||||
const markdownConfig = deck.getConfig().markdown;
|
||||
const markdownConfig = deck.getConfig?.().markdown;
|
||||
|
||||
options = options || {};
|
||||
options.separator = options.separator || markdownConfig?.separator || DEFAULT_SLIDE_SEPARATOR;
|
||||
|
Loading…
x
Reference in New Issue
Block a user