Fix markdown links truncating

pull/607/head
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: [
{