]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/shared/markdown.service.ts
Update translations
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / shared / markdown.service.ts
index 3ef16fdb980a2824a092a354ee5812eb2de4fb68..b302d9052fd3bed73a494132b00819fbc0502bcf 100644 (file)
@@ -71,7 +71,9 @@ export class MarkdownService {
   }
 
   private avoidTruncatedLinks (html: string) {
-    return html.replace(/<a[^>]+>([^<]+)<\/a>\s*...((<\/p>)|(<\/li>)|(<\/strong>))?$/mi, '$1...')
+    return html.replace(/\*\*?([^*]+)$/, '$1')
+      .replace(/<a[^>]+>([^<]+)<\/a>\s*...((<\/p>)|(<\/li>)|(<\/strong>))?$/mi, '$1...')
       .replace(/\[[^\]]+\]?\(?([^\)]+)$/, '$1')
+
   }
 }