fix all images and links
This commit is contained in:
parent
805752169b
commit
1fb35c79a6
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ function renderAnnotation(config, video, ascroll, annotation) {
|
|||
if (annotation.title) {
|
||||
figcaption = `<figcaption><a href="${baseURL}/${annotation.id}" target="_blank">${annotation.title}</a></figcaption>`
|
||||
}
|
||||
annotation.value = annotation.value.replace('src="/', `src="${baseURL}/`).replace('href="/', `href="${baseURL}/`)
|
||||
annotation.value = annotation.value.replace(/src="\//g, `src="${baseURL}/`).replace(/href="\//g, `href="${baseURL}/`)
|
||||
div.innerHTML = `
|
||||
<div class="frame">
|
||||
<figure>
|
||||
|
|
Loading…
Reference in a new issue