mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-21 16:13:00 +00:00
parser-parsedown: coment debug logging
...oops :P
This commit is contained in:
parent
33734e9ee1
commit
5ed37cad13
1 changed files with 2 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
register_module([
|
register_module([
|
||||||
"name" => "Parsedown",
|
"name" => "Parsedown",
|
||||||
"version" => "0.12.1",
|
"version" => "0.12.2",
|
||||||
"author" => "Emanuil Rusev & Starbeamrainbowlabs",
|
"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 some weight to your installation.",
|
"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 some weight to your installation.",
|
||||||
"extra_data" => [
|
"extra_data" => [
|
||||||
|
@ -1581,9 +1581,7 @@ class PeppermintParsedown extends ParsedownExtra
|
||||||
*/
|
*/
|
||||||
protected function blockOneBox($fragment, $current_block) {
|
protected function blockOneBox($fragment, $current_block) {
|
||||||
global $env, $settings, $pageindex;
|
global $env, $settings, $pageindex;
|
||||||
error_log("FRAGMENT ".var_export($fragment, true));
|
// error_log("FRAGMENT ".var_export($fragment, true));
|
||||||
error_log("CBLOCK ".var_export($current_block, true));
|
|
||||||
error_log("***********");
|
|
||||||
|
|
||||||
if($fragment["indent"] > 0 || !$settings->parser_onebox_enabled) return;
|
if($fragment["indent"] > 0 || !$settings->parser_onebox_enabled) return;
|
||||||
if(preg_match('/^\[\[\[([^\]]*?)\]\]\]$/u', $fragment["text"], $matches) !== 1)
|
if(preg_match('/^\[\[\[([^\]]*?)\]\]\]$/u', $fragment["text"], $matches) !== 1)
|
||||||
|
|
Loading…
Reference in a new issue