From a96f435778ccfe1eabd51a777c8ea706efba77b0 Mon Sep 17 00:00:00 2001 From: supercolbat Date: Fri, 18 Aug 2023 16:19:20 -0500 Subject: [PATCH] Fix poor contrast in announcement --- src/routes/+page.svelte | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 4b80fee..ae2d4a8 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -2,7 +2,7 @@ import Hero from "$lib/Hero.svelte"; import sanitizeHtml from "sanitize-html"; import type { PageData } from "./$types"; - import snarkdown from 'snarkdown'; + import snarkdown from "snarkdown"; export let data: PageData; @@ -46,13 +46,15 @@ {/if} {#if data.announcements.incident.content} -

- {@html snarkdown(sanitizeHtml( - data.announcements.incident.content.replace( - /\n/g, - "
" +

+ {@html snarkdown( + sanitizeHtml( + data.announcements.incident.content.replace( + /\n/g, + "
" + ) ) - ))} + )}

{/if}