diff --git a/build/index.php b/build/index.php
index 65b5a16..b86feb8 100644
--- a/build/index.php
+++ b/build/index.php
@@ -2033,7 +2033,7 @@ register_module([
$result = $parsedown_extra->text($source);
- $result = Parsedown_Slimdown_Extensions::render($source);
+ $result = Parsedown_Slimdown_Extensions::render($result);
return $result;
});
@@ -2074,9 +2074,9 @@ class Parsedown_Slimdown_Extensions {
public static $rules = array (
'/\r\n/' => "\n", // new line normalisation
- '/!\[(.*)\]\(([^\s]+)\s(\d+.+)\s(left|right)\)/' => '', // images with size
- '/!\[(.*)\]\(([^\s]+)\s(\d+.+)\)/' => '', // images with size
- '/!\[(.*)\]\((.*)\)/' => '', // basic images
+// '/!\[(.*)\]\(([^\s]+)\s(\d+.+)\s(left|right)\)/' => '', // images with size
+// '/!\[(.*)\]\(([^\s]+)\s(\d+.+)\)/' => '', // images with size
+// '/!\[(.*)\]\((.*)\)/' => '', // basic images
'/\[\[([a-zA-Z0-9\_\- ]+)\|([a-zA-Z0-9\_\- ]+)\]\]/' => '\2', //internal links with display text
'/\[\[([a-zA-Z0-9\_\- ]+)\]\]/' => '\1', //internal links
diff --git a/module_index.json b/module_index.json
index 917fa0e..9b5b8f9 100644
--- a/module_index.json
+++ b/module_index.json
@@ -158,7 +158,7 @@
"author": "Johnny Broadway, Emanuil Rusev & Starbeamrainbowlabs",
"description": "An upgraded parser based on Emanuil Rusev's Parsedown Extra PHP library (https:\/\/github.com\/erusev\/parsedown-extra), which is licensed MIT. Also uses a modified Slimdown engine by Johnny Broadway in order to add support for internal links etc. Please be careful, as this module adds a _ton_ of weight to your installation.",
"id": "parser-parsedown",
- "lastupdate": 1443962482,
+ "lastupdate": 1443964436,
"optional": true
}
]
\ No newline at end of file
diff --git a/modules/parser-parsedown.php b/modules/parser-parsedown.php
index 282b095..e4c32dc 100644
--- a/modules/parser-parsedown.php
+++ b/modules/parser-parsedown.php
@@ -12,7 +12,7 @@ register_module([
$result = $parsedown_extra->text($source);
- $result = Parsedown_Slimdown_Extensions::render($source);
+ $result = Parsedown_Slimdown_Extensions::render($result);
return $result;
});
@@ -53,9 +53,9 @@ class Parsedown_Slimdown_Extensions {
public static $rules = array (
'/\r\n/' => "\n", // new line normalisation
- '/!\[(.*)\]\(([^\s]+)\s(\d+.+)\s(left|right)\)/' => '', // images with size
- '/!\[(.*)\]\(([^\s]+)\s(\d+.+)\)/' => '', // images with size
- '/!\[(.*)\]\((.*)\)/' => '', // basic images
+// '/!\[(.*)\]\(([^\s]+)\s(\d+.+)\s(left|right)\)/' => '', // images with size
+// '/!\[(.*)\]\(([^\s]+)\s(\d+.+)\)/' => '', // images with size
+// '/!\[(.*)\]\((.*)\)/' => '', // basic images
'/\[\[([a-zA-Z0-9\_\- ]+)\|([a-zA-Z0-9\_\- ]+)\]\]/' => '\2', //internal links with display text
'/\[\[([a-zA-Z0-9\_\- ]+)\]\]/' => '\1', //internal links