瀏覽代碼

nil check for deck in md plugin #3517

Hakim El Hattab 1 年之前
父節點
當前提交
11680561e9
共有 3 個文件被更改,包括 1 次插入1 次删除
  1. 0 0
      plugin/markdown/markdown.esm.js
  2. 0 0
      plugin/markdown/markdown.js
  3. 1 1
      plugin/markdown/plugin.js

File diff suppressed because it is too large
+ 0 - 0
plugin/markdown/markdown.esm.js


File diff suppressed because it is too large
+ 0 - 0
plugin/markdown/markdown.js


+ 1 - 1
plugin/markdown/plugin.js

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

Some files were not shown because too many files changed in this diff