fix(frontend): treat newlines as line breaks

This commit is contained in:
Sam 2023-03-14 22:35:40 +01:00
parent 149a7fba88
commit 6c863bea96
No known key found for this signature in database
GPG Key ID: B4EF20DDE721CAA1
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@
export let data: PageData;
let bio: string | null;
$: bio = data.bio ? sanitizeHtml(marked.parse(data.bio)) : null;
$: bio = data.bio ? sanitizeHtml(marked.parse(data.bio, { breaks: true })) : null;
let memberPage: number = 0;
let memberSlice: PartialMember[] = [];

View File

@ -16,7 +16,7 @@
export let data: PageData;
let bio: string | null;
$: bio = data.bio ? sanitizeHtml(marked.parse(data.bio)) : null;
$: bio = data.bio ? sanitizeHtml(marked.parse(data.bio, { breaks: true })) : null;
const favNames = data.names.filter((entry) => entry.status === WordStatus.Favourite);
const favPronouns = data.pronouns.filter((entry) => entry.status === WordStatus.Favourite);