Fix markdown links truncating
This commit is contained in:
parent
5b7c47a781
commit
cc69c8db39
|
@ -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...')
|
||||
}
|
||||
}
|
||||
|
|
|
@ -113,8 +113,6 @@ function getControlBarChildren (options: {
|
|||
}
|
||||
|
||||
function addContextMenu (player: any, videoEmbedUrl: string) {
|
||||
console.log(videoEmbedUrl)
|
||||
|
||||
player.contextmenuUI({
|
||||
content: [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue