1
0
Fork 0
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:
Starbeamrainbowlabs 2022-08-03 01:07:00 +01:00
parent 33734e9ee1
commit 5ed37cad13
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -5,7 +5,7 @@
register_module([
"name" => "Parsedown",
"version" => "0.12.1",
"version" => "0.12.2",
"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.",
"extra_data" => [
@ -1581,9 +1581,7 @@ class PeppermintParsedown extends ParsedownExtra
*/
protected function blockOneBox($fragment, $current_block) {
global $env, $settings, $pageindex;
error_log("FRAGMENT ".var_export($fragment, true));
error_log("CBLOCK ".var_export($current_block, true));
error_log("***********");
// error_log("FRAGMENT ".var_export($fragment, true));
if($fragment["indent"] > 0 || !$settings->parser_onebox_enabled) return;
if(preg_match('/^\[\[\[([^\]]*?)\]\]\]$/u', $fragment["text"], $matches) !== 1)