summaryrefslogtreecommitdiffstats
path: root/routers/repo
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo')
-rw-r--r--routers/repo/issue.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index 7bce95c9c5..01614851fe 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -965,6 +965,8 @@ func ViewIssue(ctx *context.Context) {
return
}
} else if comment.Type == models.CommentTypeCode || comment.Type == models.CommentTypeReview {
+ comment.RenderedContent = string(markdown.Render([]byte(comment.Content), ctx.Repo.RepoLink,
+ ctx.Repo.Repository.ComposeMetas()))
if err = comment.LoadReview(); err != nil && !models.IsErrReviewNotExist(err) {
ctx.ServerError("LoadReview", err)
return