* Update the library of parse markdown.

This commit is contained in:
hufangzhou
2022-03-25 14:13:54 +08:00
parent 70ef6bae33
commit fac6327ee8
5 changed files with 1284 additions and 2 deletions
+7 -2
View File
@@ -3056,8 +3056,13 @@ EOD;
if(empty($markdown)) return false;
global $app;
$app->loadClass('htmlup');
return new htmlup($markdown);
$app->loadClass('parsedownextraplugin');
$Parsedown = new parsedownextraplugin;
$Parsedown->voidElementSuffix = '>'; // HTML5
return $Parsedown->text($markdown);
}
}