X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/18f406d97bfb0583e49e195817dd8a274cb0619d..refs/pull/2515/head:/app/Uploads/Attachment.php diff --git a/app/Uploads/Attachment.php b/app/Uploads/Attachment.php index 3367594ef..d1060477d 100644 --- a/app/Uploads/Attachment.php +++ b/app/Uploads/Attachment.php @@ -1,10 +1,20 @@ id); } + /** + * Generate a HTML link to this attachment. + */ public function htmlLink(): string { return ''.e($this->name).''; } + /** + * Generate a markdown link to this attachment. + */ public function markdownLink(): string { - + return '['. $this->name .']('. $this->getUrl() .')'; } }