diff --git a/website/src/lib/components/gpx-layer/WaypointPopup.svelte b/website/src/lib/components/gpx-layer/WaypointPopup.svelte index f570e262..78ed74e7 100644 --- a/website/src/lib/components/gpx-layer/WaypointPopup.svelte +++ b/website/src/lib/components/gpx-layer/WaypointPopup.svelte @@ -24,13 +24,13 @@ if (text === undefined) { return ''; } - let sanitized = sanitizeHtml(text, { - allowedTags: ['a', 'br'], + return sanitizeHtml(text, { + allowedTags: ['a', 'br', 'img'], allowedAttributes: { - a: ['href', 'target'] + a: ['href', 'target'], + img: ['src'] } }).trim(); - return sanitized; } @@ -102,4 +102,9 @@ @apply text-blue-500 dark:text-blue-300; @apply hover:underline; } + + div :global(img) { + @apply my-0; + @apply rounded-md; + }