Fix brackets truncation in video description
This commit is contained in:
parent
b8f4167fb6
commit
f5b72c3937
|
@ -92,7 +92,7 @@ export class MarkdownService {
|
||||||
private avoidTruncatedTags (html: string) {
|
private avoidTruncatedTags (html: string) {
|
||||||
return html.replace(/\*\*?([^*]+)$/, '$1')
|
return html.replace(/\*\*?([^*]+)$/, '$1')
|
||||||
.replace(/<a[^>]+>([^<]+)<\/a>\s*...((<\/p>)|(<\/li>)|(<\/strong>))?$/mi, '$1...')
|
.replace(/<a[^>]+>([^<]+)<\/a>\s*...((<\/p>)|(<\/li>)|(<\/strong>))?$/mi, '$1...')
|
||||||
.replace(/\[[^\]]+\]?\(?([^\)]+)$/, '$1')
|
.replace(/\[[^\]]+\]\(([^\)]+)$/m, '$1')
|
||||||
|
.replace(/\s?\[[^\]]+\]?[.]{3}<\/p>$/m, '...</p>')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue