diff --git a/client/src/app/videos/shared/markdown.service.ts b/client/src/app/videos/shared/markdown.service.ts
index dd8ff20d8..9a36786b5 100644
--- a/client/src/app/videos/shared/markdown.service.ts
+++ b/client/src/app/videos/shared/markdown.service.ts
@@ -68,7 +68,8 @@ export class MarkdownService {
}
}
- private avoidTruncatedLinks (html) {
- return html.replace(/]+>([^<]+)<\/a>\s*...(<\/p>)?$/mi, '$1...')
+ private avoidTruncatedLinks (html: string) {
+ console.log(html)
+ return html.replace(/]+>([^<]+)<\/a>\s*...((<\/p>)|(<\/li>)|(<\/strong>))?$/mi, '$1...')
}
}
diff --git a/client/src/assets/player/peertube-player.ts b/client/src/assets/player/peertube-player.ts
index 1707f34f0..eb75091de 100644
--- a/client/src/assets/player/peertube-player.ts
+++ b/client/src/assets/player/peertube-player.ts
@@ -113,8 +113,6 @@ function getControlBarChildren (options: {
}
function addContextMenu (player: any, videoEmbedUrl: string) {
- console.log(videoEmbedUrl)
-
player.contextmenuUI({
content: [
{