Skip to content

Commit c7c3e5b

Browse files
committed
preserve newsletter mdx list spacing
1 parent da9fc18 commit c7c3e5b

2 files changed

Lines changed: 30 additions & 21 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ These instructions apply to the whole repository.
1111
- Prefer Server Components by default. Only add `"use client"` when the component needs browser-only APIs, state/effects, event handlers, or client-only libraries.
1212
- When touching JS/JSX components, convert them to TS/TSX when it is reasonable and scoped to the change.
1313
- Keep shared presentational components server-safe where possible. For translated labels or suffixes, prefer passing translated text from the caller instead of adding `useTranslations` to a shared component.
14+
- In MDX prose, if an inline component inside a Markdown list item is formatted onto multiple lines and changes rendered spacing, prefer a JSX `<ul>`/`<li>` block with explicit `{" "}` spacing over disabling formatting for the whole file.
1415

1516
## Internationalisation
1617

src/content/newsletter/beginning-to-look-like-compost.mdx

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,35 @@ It’s the end of the year, and <StrongLink href={siteConfig.url}>Peels</StrongL
3232

3333
Since the start of the year, 25+ local and state governments, industry bodies, and non-profits have pointed people to Peels, with plenty more mentions elsewhere. Here are some recents:
3434

35-
- <StrongLink
36-
href="https://podcasts.apple.com/au/podcast/how-to-save-our-planet/id1648409844?i=1000732698117"
37-
target="_blank"
38-
>
39-
How to Save Our Planet
40-
</StrongLink>
41-
included Peels in its composting episode.
42-
- <StrongLink
43-
href="https://responsiblecafes.org/peels-replaces-sharewaste/"
44-
target="_blank"
45-
>
46-
Responsible Cafes
47-
</StrongLink>
48-
featured Peels in a community composting guide.
49-
- <StrongLink
50-
href="https://therot.substack.com/p/meet-danny-and-his-compost-app-peels"
51-
target="_blank"
52-
>
53-
The Rot
54-
</StrongLink>
55-
interviewed me about how Peels started.
35+
<ul>
36+
<li>
37+
<StrongLink
38+
href="https://podcasts.apple.com/au/podcast/how-to-save-our-planet/id1648409844?i=1000732698117"
39+
target="_blank"
40+
>
41+
How to Save Our Planet
42+
</StrongLink>{" "}
43+
included Peels in its composting episode.
44+
</li>
45+
<li>
46+
<StrongLink
47+
href="https://responsiblecafes.org/peels-replaces-sharewaste/"
48+
target="_blank"
49+
>
50+
Responsible Cafes
51+
</StrongLink>{" "}
52+
featured Peels in a community composting guide.
53+
</li>
54+
<li>
55+
<StrongLink
56+
href="https://therot.substack.com/p/meet-danny-and-his-compost-app-peels"
57+
target="_blank"
58+
>
59+
The Rot
60+
</StrongLink>{" "}
61+
interviewed me about how Peels started.
62+
</li>
63+
</ul>
5664

5765
You can see the full list in our <StrongLink href={getPromoKitUrl()}>promo kit</StrongLink>.
5866

0 commit comments

Comments
 (0)