mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-05 22:45:37 +02:00
Fixed processMarkdown task
This commit is contained in:
@@ -564,13 +564,13 @@ class AdminController
|
||||
$parsedown = new Parsedown($page, $defaults);
|
||||
}
|
||||
|
||||
$html = json_encode($parsedown->text($markdown));
|
||||
$html = $parsedown->text($markdown);
|
||||
$this->admin->json_response = ['status' => 'success', 'message' => $html];
|
||||
return;
|
||||
}
|
||||
$this->admin->json_response = ['status' => 'error', 'message' => 'No markdown text found'];
|
||||
|
||||
return;
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user