From 622226ec89074bb8515669a9b36432a41570cea1 Mon Sep 17 00:00:00 2001 From: pjbruijne Date: Wed, 18 Mar 2026 14:58:48 +0100 Subject: [PATCH] fix: Display Plain Text for Card Content in Collection List By replacing the call to editor?.storage.markdown.getMarkdown() with a call to editor?.getHTML(), the creation of a new card is now inline with the update of a card. This also fixes the issue of a preview containing markdown characters instead of plaintext. --- .../routes/_layout/collections/$collectionId/cards/new.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/routes/_layout/collections/$collectionId/cards/new.tsx b/frontend/src/routes/_layout/collections/$collectionId/cards/new.tsx index 74a6ec8..4974f21 100644 --- a/frontend/src/routes/_layout/collections/$collectionId/cards/new.tsx +++ b/frontend/src/routes/_layout/collections/$collectionId/cards/new.tsx @@ -20,8 +20,8 @@ function NewCard() { const handleClose = async () => { await saveCard({ ...card, - front: frontEditor?.storage.markdown.getMarkdown() || '', - back: backEditor?.storage.markdown.getMarkdown() || '', + front: frontEditor?.getHTML() || '', + back: backEditor?.getHTML() || '', }) navigate({ to: `/collections/${collectionId}` }) }