1
0
Fork 0

Fix markdown links truncating

This commit is contained in:
Chocobozzz 2018-06-07 10:32:50 +02:00
parent 5b7c47a781
commit cc69c8db39
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 3 additions and 4 deletions

View file

@ -68,7 +68,8 @@ export class MarkdownService {
}
}
private avoidTruncatedLinks (html) {
return html.replace(/<a[^>]+>([^<]+)<\/a>\s*...(<\/p>)?$/mi, '$1...')
private avoidTruncatedLinks (html: string) {
console.log(html)
return html.replace(/<a[^>]+>([^<]+)<\/a>\s*...((<\/p>)|(<\/li>)|(<\/strong>))?$/mi, '$1...')
}
}

View file

@ -113,8 +113,6 @@ function getControlBarChildren (options: {
}
function addContextMenu (player: any, videoEmbedUrl: string) {
console.log(videoEmbedUrl)
player.contextmenuUI({
content: [
{