From 150da7093271607db13cbcbd76bc83a21edf8007 Mon Sep 17 00:00:00 2001 From: "mr. m" Date: Wed, 8 Apr 2026 13:27:57 +0200 Subject: [PATCH] fix: adjust link formatting in ReleaseNoteListItem to prevent extra space from Prettier --- .prettierignore | 6 +++++- src/components/ReleaseNoteListItem.astro | 12 +++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.prettierignore b/.prettierignore index 572a3405..39196891 100644 --- a/.prettierignore +++ b/.prettierignore @@ -50,4 +50,8 @@ public/favicon.svg .github/ISSUE_TEMPLATE/ .github/PULL_REQUEST_TEMPLATE/ CONTRIBUTING.md -README.md \ No newline at end of file +README.md + +# The ending ")" in the link is causing Prettier to format the code in a way that +# it adds an empty space between the link and the parentheses. +src/components/ReleaseNoteListItem.astro diff --git a/src/components/ReleaseNoteListItem.astro b/src/components/ReleaseNoteListItem.astro index 3edb5765..e5111cdc 100644 --- a/src/components/ReleaseNoteListItem.astro +++ b/src/components/ReleaseNoteListItem.astro @@ -41,11 +41,13 @@ const { { link && ( - ( - - {link.text} - - ) + <> + {type === 'fix' && {'('}} + + {link.text} + {/* prettier-ignore */} + {type === 'fix' && {')'}} + ) }