From e182430ac70505fa1492748ae43e1922826bf206 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 28 Sep 2018 16:07:27 +0200 Subject: Update translations --- client/src/app/videos/shared/markdown.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client/src/app') 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 { } private avoidTruncatedLinks (html: string) { - return html.replace(/]+>([^<]+)<\/a>\s*...((<\/p>)|(<\/li>)|(<\/strong>))?$/mi, '$1...') + return html.replace(/\*\*?([^*]+)$/, '$1') + .replace(/]+>([^<]+)<\/a>\s*...((<\/p>)|(<\/li>)|(<\/strong>))?$/mi, '$1...') .replace(/\[[^\]]+\]?\(?([^\)]+)$/, '$1') + } } -- cgit v1.2.3