Skip to content

Conversation

nylexar-sudo
Copy link
Contributor

@nylexar-sudo nylexar-sudo commented Sep 14, 2025

Changes

Consistently treat custom element & components the same way as HTML elements when htmlWhitespaceSensitivity is set to ignore, e.g.

Input:

<Link href="https://github.com/withastro/prettier-plugin-astro">Prettier Plugin for Astro (using component)</Link>

Before:

<Link href="https://github.com/withastro/prettier-plugin-astro"
  >Prettier Plugin for Astro (using component)</Link
>

After

<Link href="https://github.com/withastro/prettier-plugin-astro">
  Prettier Plugin for Astro (using component)
</Link>

Testing

Test added

Docs

Not needed

Copy link

changeset-bot bot commented Sep 14, 2025

🦋 Changeset detected

Latest commit: ef8b628

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
prettier-plugin-astro Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@nylexar-sudo nylexar-sudo force-pushed the bugfix-with-bracket-same-line branch from 92b3d16 to ef8b628 Compare September 14, 2025 04:19
Copy link
Member

@Princesseuh Princesseuh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you! Apologies for the late review.

@Princesseuh Princesseuh merged commit c380d32 into withastro:main Oct 8, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants