aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/videos/shared/markdown.service.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/app/videos/shared/markdown.service.ts b/client/src/app/videos/shared/markdown.service.ts
index d8b5b76b6..82745f0c6 100644
--- a/client/src/app/videos/shared/markdown.service.ts
+++ b/client/src/app/videos/shared/markdown.service.ts
@@ -35,6 +35,9 @@ export class MarkdownService {
35 } 35 }
36 36
37 markdownToHTML (markdown: string) { 37 markdownToHTML (markdown: string) {
38 return this.markdownIt.render(markdown) 38 const html = this.markdownIt.render(markdown)
39
40 // Avoid linkify truncated links
41 return html.replace(/<a[^>]+>([^<]+)<\/a>\s*...(<\/p>)?$/mi, '$1...')
39 } 42 }
40} 43}