diff options
author | kimsible <kimsible@users.noreply.github.com> | 2020-08-08 12:01:28 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-14 15:03:38 +0200 |
commit | 0672dc769b6ee42b4357748c62aaeabf8801c472 (patch) | |
tree | 54b206fcbe25129ee57a81c6130222a28775fe43 /client/src/app/+videos | |
parent | 438c256b2672fa9539b703e6f28d4b70ef3dccfb (diff) | |
download | PeerTube-0672dc769b6ee42b4357748c62aaeabf8801c472.tar.gz PeerTube-0672dc769b6ee42b4357748c62aaeabf8801c472.tar.zst PeerTube-0672dc769b6ee42b4357748c62aaeabf8801c472.zip |
Add unicode emoji to markdown
Diffstat (limited to 'client/src/app/+videos')
-rw-r--r-- | client/src/app/+videos/+video-watch/comment/video-comment-add.component.html | 1 | ||||
-rw-r--r-- | client/src/app/+videos/+video-watch/comment/video-comment.component.ts | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/+videos/+video-watch/comment/video-comment-add.component.html b/client/src/app/+videos/+video-watch/comment/video-comment-add.component.html index ec8da02e2..b4f8bda5e 100644 --- a/client/src/app/+videos/+video-watch/comment/video-comment-add.component.html +++ b/client/src/app/+videos/+video-watch/comment/video-comment-add.component.html | |||
@@ -13,6 +13,7 @@ | |||
13 | <li>Links</li> | 13 | <li>Links</li> |
14 | <li>Break lines</li> | 14 | <li>Break lines</li> |
15 | <li>Lists</li> | 15 | <li>Lists</li> |
16 | <li>Emojis</li> | ||
16 | </ul> | 17 | </ul> |
17 | </div> | 18 | </div> |
18 | </ng-template> | 19 | </ng-template> |
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 fe069b54c..5491023ee 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 | |||
@@ -149,7 +149,7 @@ export class VideoCommentComponent implements OnInit, OnChanges { | |||
149 | } | 149 | } |
150 | 150 | ||
151 | private async init () { | 151 | private async init () { |
152 | const html = await this.markdownService.textMarkdownToHTML(this.comment.text, true) | 152 | const html = await this.markdownService.textMarkdownToHTML(this.comment.text, true, true) |
153 | this.sanitizedCommentHTML = await this.markdownService.processVideoTimestamps(html) | 153 | this.sanitizedCommentHTML = await this.markdownService.processVideoTimestamps(html) |
154 | this.newParentComments = this.parentComments.concat([ this.comment ]) | 154 | this.newParentComments = this.parentComments.concat([ this.comment ]) |
155 | 155 | ||