parsed md
This commit is contained in:
parent
00003673f1
commit
e9ac88f500
2 changed files with 19 additions and 18 deletions
|
@ -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']);
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
</div>
|
||||
</a>
|
||||
<div class="markdown">
|
||||
{{ newsPost.content }}
|
||||
{{ newsPost.parsed }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
|
Reference in a new issue