Problem: Commentary text is currently rendered by splitting on newline characters, which works but doesn't capture the original paragraph structure of the commentary. Some commentary entries have logical sections, sub-headings, or numbered points that would benefit from better visual formatting.
Solution: Implement smarter paragraph detection that can identify structural elements in commentary text — section breaks, numbered lists, and quoted Scripture — and render them with appropriate visual formatting.
Not included: Full rich-text/HTML rendering or user-editable formatting. This is about detecting and displaying the existing structure in the plain-text commentary data.
Commentary text should display with visual paragraph breaks that respect the original structure of the commentary, rather than treating every newline as an equal paragraph break.
TODO: Define what structural elements exist in the commentary data (headers, lists, quotations?) TODO: Survey a sample of commentary entries to identify common patterns
Expected improvements:
TODO: Design the visual treatment for different paragraph types TODO: Mockup showing before/after comparison
Current rendering (in CommentaryDrawer.svelte):
\n into lines<p> tagProposed approach:
TODO: Analyze the actual commentary text data to identify patterns worth formatting
Files:
apps/web/src/lib/components/bible/CommentaryDrawer.svelte (modify)Current: NEEDS_DESIGN Milestone: v2 Priority: Low — current paragraph rendering works, this is a polish feature
History:
Design questions:
Dependencies: