aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-watch/comment/video-comment.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+videos/+video-watch/comment/video-comment.component.ts')
-rw-r--r--client/src/app/+videos/+video-watch/comment/video-comment.component.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/+videos/+video-watch/comment/video-comment.component.ts b/client/src/app/+videos/+video-watch/comment/video-comment.component.ts
index ac2a71aa6..3b3a5cc81 100644
--- a/client/src/app/+videos/+video-watch/comment/video-comment.component.ts
+++ b/client/src/app/+videos/+video-watch/comment/video-comment.component.ts
@@ -153,7 +153,9 @@ export class VideoCommentComponent implements OnInit, OnChanges {
153 } 153 }
154 154
155 private async init () { 155 private async init () {
156 const html = await this.markdownService.textMarkdownToHTML(this.comment.text, true, true) 156 // Before HTML rendering restore line feed for markdown list compatibility
157 const commentText = this.comment.text.replace(/<br.?\/?>/g, '\r\n')
158 const html = await this.markdownService.textMarkdownToHTML(commentText, true, true)
157 this.sanitizedCommentHTML = await this.markdownService.processVideoTimestamps(html) 159 this.sanitizedCommentHTML = await this.markdownService.processVideoTimestamps(html)
158 this.newParentComments = this.parentComments.concat([ this.comment ]) 160 this.newParentComments = this.parentComments.concat([ this.comment ])
159 161