diff --git a/app/(app)/books/chapter-viewer.tsx b/app/(app)/books/chapter-viewer.tsx index db792402..b531f01e 100644 --- a/app/(app)/books/chapter-viewer.tsx +++ b/app/(app)/books/chapter-viewer.tsx @@ -219,9 +219,17 @@ function VerseCard({ Purport
- {verse.purport.map((p, i) => ( -

- ))} + {verse.purport.map((p, i) => + // Cited ślokas come wrapped in

— a + // block element that can't live inside a

, so render those + // in a

(styled centered + accent via globals.css); plain + // prose paragraphs stay as

. + /^\s*

+ ) : ( +

+ ), + )}

)} diff --git a/app/globals.css b/app/globals.css index 60126086..9e75559e 100644 --- a/app/globals.css +++ b/app/globals.css @@ -452,3 +452,16 @@ .reading-justified main { text-align: justify; } + +/* Cited Sanskrit ślokas quoted inside a purport (wrapped by the extractor as +
). Set them apart from the running commentary — + centered, italic, in the primary (peacock) accent — so it reads at a glance + as a verse quoted from another reference rather than as prose. Placed last so + the centering wins over .reading-justified. */ +blockquote.shloka { + margin: 0.75rem 0; + text-align: center; + font-style: italic; + color: var(--primary); + line-height: 1.7; +}