replaced cebe/markdown with erusev/parsedown
This commit is contained in:
parent
5c6d2c905e
commit
07583fc1ff
@ -5,6 +5,7 @@ namespace App\Utilities;
|
|||||||
use App\Traits\SiteApi;
|
use App\Traits\SiteApi;
|
||||||
use Cache;
|
use Cache;
|
||||||
use Date;
|
use Date;
|
||||||
|
use Parsedown;
|
||||||
|
|
||||||
class Versions
|
class Versions
|
||||||
{
|
{
|
||||||
@ -24,7 +25,7 @@ class Versions
|
|||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
$github = new \cebe\markdown\GithubMarkdown();
|
$parsedown = new Parsedown();
|
||||||
|
|
||||||
$releases = json_decode($json);
|
$releases = json_decode($json);
|
||||||
|
|
||||||
@ -43,10 +44,7 @@ class Versions
|
|||||||
|
|
||||||
$output .= '<h2><span class="label label-success">'.$release->tag_name.'</span></h2>';
|
$output .= '<h2><span class="label label-success">'.$release->tag_name.'</span></h2>';
|
||||||
|
|
||||||
// Parse markdown output
|
$output .= $parsedown->text($release->body);
|
||||||
$markdown = str_replace('## Changelog', '', $release->body);
|
|
||||||
|
|
||||||
$output .= $github->parse($markdown);
|
|
||||||
|
|
||||||
$output .= '<hr>';
|
$output .= '<hr>';
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
"barryvdh/laravel-debugbar": "2.3.*",
|
"barryvdh/laravel-debugbar": "2.3.*",
|
||||||
"barryvdh/laravel-dompdf": "0.*",
|
"barryvdh/laravel-dompdf": "0.*",
|
||||||
"barryvdh/laravel-ide-helper": "2.3.*",
|
"barryvdh/laravel-ide-helper": "2.3.*",
|
||||||
"cebe/markdown": "1.1.*",
|
|
||||||
"cknow/laravel-money": "1.0.*",
|
"cknow/laravel-money": "1.0.*",
|
||||||
"dingo/api": "1.0.0-beta8",
|
"dingo/api": "1.0.0-beta8",
|
||||||
"fzaninotto/faker": "1.6.*",
|
"fzaninotto/faker": "1.6.*",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user