From 40c2e2cf90673bdc76ad2092bf00fd6f63dc21df Mon Sep 17 00:00:00 2001 From: Suraj Patil Date: Wed, 1 Jun 2016 09:48:57 +0530 Subject: [PATCH] Markdown support for Comments --- db/tasks.go | 1 + 1 file changed, 1 insertion(+) diff --git a/db/tasks.go b/db/tasks.go index 088c36b..5ebbfad 100644 --- a/db/tasks.go +++ b/db/tasks.go @@ -342,6 +342,7 @@ func GetComments(username string) (map[int][]types.Comment, error) { defer rows.Close() for rows.Next() { err := rows.Scan(&comment.ID, &taskID, &comment.Content, &created, &comment.Username) + comment.Content = string(md.Markdown([]byte(comment.Content))) if err != nil { return commentMap, err }