Skip to content

Commit

Permalink
fixed changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Mar 12, 2020
1 parent 49d068f commit 5f490ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/Utilities/Versions.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
use App\Traits\SiteApi;
use Cache;
use Date;
use GrahamCampbell\Markdown\Facades\Markdown;
use Illuminate\Support\Arr;
use Parsedown;

class Versions
{
Expand All @@ -27,8 +27,6 @@ public static function changelog()
return $output;
}

$parsedown = new Parsedown();

$releases = json_decode($json);

foreach ($releases as $release) {
Expand All @@ -46,7 +44,7 @@ public static function changelog()

$output .= '<h2><span class="badge badge-pill badge-success">' . $release->tag_name . '</span></h2>';

$output .= $parsedown->text($release->body);
$output .= Markdown::convertToHtml($release->body);

$output .= '<hr>';
}
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"doctrine/dbal": "2.9.*",
"fideloper/proxy": "4.2.*",
"genealabs/laravel-model-caching": "0.7.*",
"graham-campbell/markdown": "12.0.*",
"guzzlehttp/guzzle": "6.5.*",
"intervention/image": "2.5.*",
"jenssegers/date": "3.5.*",
Expand Down

0 comments on commit 5f490ad

Please sign in to comment.