fixed "Markdown" CSS style for lists

This commit is contained in:
Exodus4D
2016-01-23 13:12:14 +01:00
parent 8bc7d7bded
commit 0fe680aaad
3 changed files with 9 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ class GitHub extends Controller\Controller {
public function releases($f3){
$cacheKey = 'CACHE_GITHUB_RELEASES';
$ttl = 60 * 30; // 30min
$releaseCount = 5;
$releaseCount = 3;
if( !$f3->exists($cacheKey) ){
$apiPath = $this->getF3()->get('PATHFINDER.API.GIT_HUB') . '/repos/exodus4d/pathfinder/releases';
@@ -62,7 +62,11 @@ class GitHub extends Controller\Controller {
$md = \Markdown::instance();
foreach($releasesData as &$releaseData){
if(isset($releaseData->body)){
$releaseData->body = $md->convert( $releaseData->body );
// convert list style
$body = str_replace(' - ', '* ', $releaseData->body );
$releaseData->body = $md->convert( $body );
}
}
$f3->set($cacheKey, $releasesData, $ttl);

File diff suppressed because one or more lines are too long

View File

@@ -128,6 +128,8 @@
.timeline-body > p,
.timeline-body > ul {
margin-bottom: 0;
list-style-type: disc;
margin-left: 15px;
}
.timeline-body > p + p {