feat(api/markdown): default content

This commit is contained in:
Baoshuo Ren 2023-04-28 08:53:23 +08:00
parent b656d59b23
commit 431598503f
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -7,6 +7,10 @@ $purifier_type = UOJRequest::post('purifier_type', 'is_string', 'default');
$markdown = UOJRequest::post('markdown', 'is_string', '');
if ($markdown == '') {
$markdown = '_Nothing to preview._';
}
$parsedown = HTML::parsedown();
if ($purifier_type == 'inline') {