diff options
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/renderer/markdown.service.ts | 4 |
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 | } |