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' && {')'}} + ) }