diff --git a/frontend/src/routes/study/cards-study/+page.svelte b/frontend/src/routes/study/cards-study/+page.svelte index cecc892..4ab46f2 100644 --- a/frontend/src/routes/study/cards-study/+page.svelte +++ b/frontend/src/routes/study/cards-study/+page.svelte @@ -20,6 +20,7 @@ import Button from '$lib/components/ui/Button.svelte'; import Skeleton from '$lib/components/ui/Skeleton.svelte'; import EmptyState from '$lib/components/ui/EmptyState.svelte'; + import { renderMathMarkdown, renderMathMarkdownInline } from '$lib/utils/mathMarkdown'; // sr_schedule.py 단일 source 미러 — '암'(correct) 다음 복습일 라벨 전용(실제 스케줄은 백엔드). // stage===null = 신규 카드(progress 없음): '암'이면 백엔드가 due 안 박음(외움→큐 제외)이라 '안 나옴'. @@ -368,14 +369,17 @@
앞 — {current.format === 'qa' ? '질문' : '회상'}
-
{frontText(current)}
+
{@html renderMathMarkdownInline(frontText(current))}
{#if revealed}
정답
-
{current.fact}
+
{@html renderMathMarkdownInline(current.fact)}
{#if current.evidence?.length && current.evidence[0].snippet} -
근거: {current.evidence[0].snippet}
+
+
근거
+
{@html renderMathMarkdown(current.evidence[0].snippet)}
+
{/if}
{/if} @@ -424,9 +428,9 @@