diff --git a/Changelog.md b/Changelog.md index 691b0cd..2c3e8d1 100644 --- a/Changelog.md +++ b/Changelog.md @@ -36,7 +36,7 @@ - Save preprocessors now get passed an extra parameter, which contains the old page source. - Changed the default parser to parsedown. - Removed parsedown from the `parser-parsedown` module and replaced it with code that automatically downloads parsedown and parsedown extra on the first run. - - Removed Slimdown add from the parsedown parser and replaced it with a custom extension of parsedown extra. + - Removed Slimdown addition from the parsedown parser and replaced it with a custom extension of parsedown extra. - Moved printable button to bottom bar and changed display text to "Printable version". - Redirect pages now show in italics in page lists. - Made other minor improvements to the page lists. diff --git a/build/index.php b/build/index.php index ca24961..761140a 100644 --- a/build/index.php +++ b/build/index.php @@ -3814,7 +3814,7 @@ class PeppermintParsedown extends ParsedownExtra array_unshift($this->InlineTypes["!"], "ExtendedImage"); $this->inlineMarkerList .= "{"; - if(!is_array($this->InlineTypes["{"])) + if(!isset($this->InlineTypes["{"]) or !is_array($this->InlineTypes["{"])) $this->InlineTypes["{"] = []; $this->InlineTypes["{"][] = "Template"; } diff --git a/module_index.json b/module_index.json index 9bfe2e9..6be463d 100644 --- a/module_index.json +++ b/module_index.json @@ -194,7 +194,7 @@ "author": "Emanuil Rusev & Starbeamrainbowlabs", "description": "An upgraded (now default!) parser based on Emanuil Rusev's Parsedown Extra PHP library (https:\/\/github.com\/erusev\/parsedown-extra), which is licensed MIT. Please be careful, as this module adds a some weight to your installation, and also *requires* write access to the disk on first load.", "id": "parser-parsedown", - "lastupdate": 1458824859, + "lastupdate": 1458928314, "optional": false } ] \ No newline at end of file diff --git a/modules/parser-parsedown.php b/modules/parser-parsedown.php index 5a65c01..5db4330 100644 --- a/modules/parser-parsedown.php +++ b/modules/parser-parsedown.php @@ -77,7 +77,7 @@ class PeppermintParsedown extends ParsedownExtra array_unshift($this->InlineTypes["!"], "ExtendedImage"); $this->inlineMarkerList .= "{"; - if(!is_array($this->InlineTypes["{"])) + if(!isset($this->InlineTypes["{"]) or !is_array($this->InlineTypes["{"])) $this->InlineTypes["{"] = []; $this->InlineTypes["{"][] = "Template"; }