Fix markdown links truncating
This commit is contained in:
parent
5b7c47a781
commit
cc69c8db39
|
@ -68,7 +68,8 @@ export class MarkdownService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private avoidTruncatedLinks (html) {
|
private avoidTruncatedLinks (html: string) {
|
||||||
return html.replace(/<a[^>]+>([^<]+)<\/a>\s*...(<\/p>)?$/mi, '$1...')
|
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) {
|
function addContextMenu (player: any, videoEmbedUrl: string) {
|
||||||
console.log(videoEmbedUrl)
|
|
||||||
|
|
||||||
player.contextmenuUI({
|
player.contextmenuUI({
|
||||||
content: [
|
content: [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue