Skip to content

Format verses according to reminder.dev and deduplicate headers#353

Merged
asim merged 2 commits intomainfrom
claude/track-api-usage-L6x8s
Mar 23, 2026
Merged

Format verses according to reminder.dev and deduplicate headers#353
asim merged 2 commits intomainfrom
claude/track-api-usage-L6x8s

Conversation

@asim
Copy link
Member

@asim asim commented Mar 23, 2026

No description provided.

claude added 2 commits March 23, 2026 16:33
- Use same format as reminder.dev: "{Name} ({Chapter}:{Verse})\n\n{text}"
  as header line followed by the verse text
- Join multi-verse continuations with paragraph breaks (double newline)
  when ending with period/colon, inline when ending with comma/dash/letter
  — mirroring reminder.dev's getVerse() logic
- Rely on .verse CSS class (white-space: pre-wrap) to preserve newlines
  instead of inserting <br> tags

https://claude.ai/code/session_016UhaM3HefwZjArvB7hHbpE
When the surah's Arabic name matches the English name (e.g. Muhammad,
Luqman), the reminder.dev API returns "Muhammad - Muhammad - 47:1".
Now deduplicates to "Muhammad - 47:1". Applied to the hourly rotation
card. The contextual card already uses a single-name format.

https://claude.ai/code/session_016UhaM3HefwZjArvB7hHbpE
@asim asim merged commit d5eba7c into main Mar 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants