md renderer for description view.

This commit is contained in:
Peng Lyu
2018-05-23 10:37:16 -07:00
parent 1c93c7744a
commit 1281febbe2
6 changed files with 8683 additions and 14 deletions

View File

@@ -4,6 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import * as moment from 'moment';
import md from './mdRenderer';
export enum EventType {
Committed,
@@ -159,7 +160,7 @@ export function renderComment(comment: CommentEvent): string {
<div class="timestamp">${moment(comment.created_at).fromNow()}</div>
</div>
<div class="comment-body">
${comment.body}
${md.render(comment.body)}
</div>
</div>
</div>