* Update the library of parse markdown.

This commit is contained in:
hufangzhou
2022-03-25 14:46:14 +08:00
parent adee678647
commit ec34fa3832
5 changed files with 1281 additions and 2 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+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);
}
}