aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-07 10:32:50 +0200
committerChocobozzz <me@florianbigard.com>2018-06-07 10:32:50 +0200
commitcc69c8db39f48b1053c246458541ccc406228711 (patch)
tree70ec9dbbfbd94f32fb079398cfdb9bfa1dcfdde9 /client/src/app
parent5b7c47a781f33bfbeff12c30f5c790bac2378731 (diff)
downloadPeerTube-cc69c8db39f48b1053c246458541ccc406228711.tar.gz
PeerTube-cc69c8db39f48b1053c246458541ccc406228711.tar.zst
PeerTube-cc69c8db39f48b1053c246458541ccc406228711.zip
Fix markdown links truncating
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/videos/shared/markdown.service.ts5
1 files changed, 3 insertions, 2 deletions
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 {
68 } 68 }
69 } 69 }
70 70
71 private avoidTruncatedLinks (html) { 71 private avoidTruncatedLinks (html: string) {
72 return html.replace(/<a[^>]+>([^<]+)<\/a>\s*...(<\/p>)?$/mi, '$1...') 72 console.log(html)
73 return html.replace(/<a[^>]+>([^<]+)<\/a>\s*...((<\/p>)|(<\/li>)|(<\/strong>))?$/mi, '$1...')
73 } 74 }
74} 75}