diff --git a/src/components/LinkOut.astro b/src/components/LinkOut.astro index c4b8022..54c35fb 100644 --- a/src/components/LinkOut.astro +++ b/src/components/LinkOut.astro @@ -1,19 +1,13 @@ --- 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 && }