align list markers with item text
Fixes a vertical gap between the list marker (arrow bullet / number) and the item text in .prose-text lists. Loose-list items render their content inside <p>. Because .prose-text lists are CSS grid containers, each <li> establishes its own block formatting context, so the paragraph's prose margin-top no longer collapses and pushes the text below the marker.
Fix: zero margin-top on the first <p> and margin-bottom on the last <p> inside list items (.prose-text li > p).
Spotted on the Nostr event preview (workshop event), but it affects every .prose-text surface.
Also documents an existing implicit convention in AGENTS.md: merge request descriptions and test plans are written in English (the MR template already is).
.prose-text li > p touches every .prose-text surface that renders a loose list (blank line between items, producing <li><p>…</p></li>):
- Nostr event preview and story preview (
render-markdown.js) - Strapi rich text via
Markdown.astro: RichText, FAQs, Features, StepsGrid, Hero.astro(inlinemarked)- Both bulleted (
ul) and numbered (ol) lists
CardGrid, Spotlight, People, Categories, QuoteGrid, Newsletter, AudioPlayer, VideoGrid, ContactInfo
Not affected: .arrow-list standalone (RichText "chapters" nav — different class), and tight lists (no <p> inside <li>, selector does not match). No security-sensitive areas touched.
On the preview link, open content that contains a bulleted or numbered list with blank lines between items, and confirm the marker now lines up with the first line of text:
- [x] Nostr event preview (the original bug) — arrow lists line up
- [x] Nostr story preview
- [x] Strapi RichText block:
ulandollists - [ ] Numbered list (
ol): number circle aligns with text - [ ] Strapi blocks with markdown that may contain lists: FAQs, Features,
- [ ] Tight lists (no blank lines between items): unchanged
- [ ] Multi-paragraph list items: spacing between paragraphs preserved
StepsGrid, CardGrid, Spotlight, People, Categories, QuoteGrid, Newsletter, AudioPlayer, VideoGrid, ContactInfo, Hero
(only first/last margin removed)
- [x] Branch named
feat/…,fix/…,chore/…,docs/…orhotfix/… - [x] Commit messages follow Conventional Commits
- [x]
pnpm formathas been run and the checks are green - [x] Tried it on the preview link
- [x] Rebased on the latest
main
Updates · newest first
- preview ↗ docs(agents): require English for merge request descriptions
- no preview fix(prose): remove margin gap between list marker and item text