From 63c5878ea5508a1f10f10fe7bfc1927b7d5adea4 Mon Sep 17 00:00:00 2001 From: Jonathan Matthey Date: Fri, 28 Nov 2025 12:05:01 +0000 Subject: [PATCH 1/4] fix the extra

in the linkout component --- src/components/LinkOut.astro | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/src/components/LinkOut.astro b/src/components/LinkOut.astro index c4b8022..8ea80b4 100644 --- a/src/components/LinkOut.astro +++ b/src/components/LinkOut.astro @@ -1,21 +1,17 @@ --- const { href, withIcon = true } = Astro.props +let slotContent = await Astro.slots.render('default') +// Remove wrapping

tags that MDX adds +slotContent = slotContent.replace(/^

(.*)<\/p>$/s, '$1').trim() --- -{ - withIcon ? ( - - - - - ) : ( - - - - ) -} +{withIcon && }