parsed md

This commit is contained in:
Pachira 2015-04-02 15:27:21 +02:00
parent 00003673f1
commit e9ac88f500
2 changed files with 19 additions and 18 deletions

View file

@ -159,6 +159,7 @@ class Main {
// Get user data
foreach($newsPosts as $newsId => $newsPost) {
$newsPosts[$newsId]['parsed'] = self::mdParse($newsPost['content']);
$newsPosts[$newsId]['udata'] = Users::getUser($newsPost['uid']);
$newsPosts[$newsId]['gdata'] = Users::getGroup($newsPosts[$newsId]['udata']['group_main']);
}

View file

@ -7,7 +7,7 @@
</div>
</a>
<div class="markdown">
{{ newsPost.content }}
{{ newsPost.parsed }}
</div>
</div>
<div class="clear"></div>