From a76cc4a4537a94c16250f8b97c20c98c53bd1be8 Mon Sep 17 00:00:00 2001 From: hyungi Date: Sun, 7 Jun 2026 15:14:14 +0900 Subject: [PATCH] =?UTF-8?q?fix(study):=20=EC=95=94=EA=B8=B0=EC=B9=B4?= =?UTF-8?q?=EB=93=9C=20=ED=95=99=EC=8A=B5=20=E2=80=94=20=EC=B9=B4=EB=93=9C?= =?UTF-8?q?=20=EC=95=9E=EB=A9=B4/=EC=A0=95=EB=8B=B5/=EA=B7=BC=EA=B1=B0=20?= =?UTF-8?q?=EB=A7=88=ED=81=AC=EB=8B=A4=EC=9A=B4+=EC=88=98=EC=8B=9D=20?= =?UTF-8?q?=EB=A0=8C=EB=8D=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 근거(evidence) 패널이 ##·$$..$$·표·**굵게** 를 raw 평문으로 노출하던 문제. study 다른 화면과 동일하게 renderMathMarkdown(블록, 근거)·renderMathMarkdownInline(인라인, 앞면·정답 LaTeX) 적용. cloze 빈칸 [____]는 링크정의 없어 literal 보존. - 검토 반영(유효 지적): 근거 max-h-[70vh] overflow-y-auto + overflow-x-auto(표), 정답 break-words, 근거 폰트 text-xs 통일. Co-Authored-By: Claude Opus 4.8 (1M context) --- frontend/src/routes/study/cards-study/+page.svelte | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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 @@