aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-11-29 10:18:40 +0100
committerChocobozzz <me@florianbigard.com>2019-11-29 10:18:40 +0100
commitf5b72c3937c721258c569ee783503adb379c42ab (patch)
tree2bb5a3800b5ef2500d3b70b378d382a3e80a6e89 /client
parentb8f4167fb6fa448125aeecff80b201d74e27fe6a (diff)
downloadPeerTube-f5b72c3937c721258c569ee783503adb379c42ab.tar.gz
PeerTube-f5b72c3937c721258c569ee783503adb379c42ab.tar.zst
PeerTube-f5b72c3937c721258c569ee783503adb379c42ab.zip
Fix brackets truncation in video description
Diffstat (limited to 'client')
-rw-r--r--client/src/app/shared/renderer/markdown.service.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/renderer/markdown.service.ts b/client/src/app/shared/renderer/markdown.service.ts
index 0e24f3085..9aec3b4bc 100644
--- a/client/src/app/shared/renderer/markdown.service.ts
+++ b/client/src/app/shared/renderer/markdown.service.ts
@@ -92,7 +92,7 @@ export class MarkdownService {
92 private avoidTruncatedTags (html: string) { 92 private avoidTruncatedTags (html: string) {
93 return html.replace(/\*\*?([^*]+)$/, '$1') 93 return html.replace(/\*\*?([^*]+)$/, '$1')
94 .replace(/<a[^>]+>([^<]+)<\/a>\s*...((<\/p>)|(<\/li>)|(<\/strong>))?$/mi, '$1...') 94 .replace(/<a[^>]+>([^<]+)<\/a>\s*...((<\/p>)|(<\/li>)|(<\/strong>))?$/mi, '$1...')
95 .replace(/\[[^\]]+\]?\(?([^\)]+)$/, '$1') 95 .replace(/\[[^\]]+\]\(([^\)]+)$/m, '$1')
96 96 .replace(/\s?\[[^\]]+\]?[.]{3}<\/p>$/m, '...</p>')
97 } 97 }
98} 98}