refac: banner newlines

This commit is contained in:
Timothy Jaeryang Baek 2025-07-02 14:06:06 +04:00
parent 9b718e7817
commit 3f800c069e

View file

@ -36,6 +36,8 @@
onMount(() => {
mounted = true;
console.log('Banner mounted:', banner);
});
</script>
@ -82,9 +84,8 @@
</div>
{/if}
</div>
<div class="flex-1 text-xs text-gray-700 dark:text-white max-h-60 overflow-y-auto">
{@html marked.parse(DOMPurify.sanitize(banner.content))}
{@html marked.parse(DOMPurify.sanitize((banner?.content ?? '').replace(/\n/g, '<br>')))}
</div>
</div>