1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-01-17 05:18:27 +01:00

md plugin api works even if deck isn't available #3517

This commit is contained in:
Hakim El Hattab 2023-11-06 10:59:12 +01:00
parent 010f06c339
commit 9d1c7e21b6
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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;