server ver

This commit is contained in:
2021-06-20 13:49:07 +00:00
parent 36a8c92dec
commit 8877c0bad0
975 changed files with 555 additions and 6596 deletions

1
app/Services/Markdown.php Normal file → Executable file
View File

@@ -258,6 +258,7 @@ class Markdown extends \Parsedown {
protected function inlineUrl($Excerpt) {
$e = parent::inlineUrl($Excerpt);
if (is_null($e)) return;
$e['element']['attributes']['href'] = htmlspecialchars($e['element']['attributes']['href']);
if (static::isImage($e['element']['attributes']['href'])) {
$e['element']['name'] = 'img';
$e['element']['attributes']['src'] = $e['element']['attributes']['href'];