diff options
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/videos/shared/markdown.service.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/videos/shared/markdown.service.ts b/client/src/app/videos/shared/markdown.service.ts index 3ef16fdb9..b302d9052 100644 --- a/client/src/app/videos/shared/markdown.service.ts +++ b/client/src/app/videos/shared/markdown.service.ts | |||
@@ -71,7 +71,9 @@ export class MarkdownService { | |||
71 | } | 71 | } |
72 | 72 | ||
73 | private avoidTruncatedLinks (html: string) { | 73 | private avoidTruncatedLinks (html: string) { |
74 | return html.replace(/<a[^>]+>([^<]+)<\/a>\s*...((<\/p>)|(<\/li>)|(<\/strong>))?$/mi, '$1...') | 74 | return html.replace(/\*\*?([^*]+)$/, '$1') |
75 | .replace(/<a[^>]+>([^<]+)<\/a>\s*...((<\/p>)|(<\/li>)|(<\/strong>))?$/mi, '$1...') | ||
75 | .replace(/\[[^\]]+\]?\(?([^\)]+)$/, '$1') | 76 | .replace(/\[[^\]]+\]?\(?([^\)]+)$/, '$1') |
77 | |||
76 | } | 78 | } |
77 | } | 79 | } |