Skip to content

fix(external-link): strip whitespace inside external anchors - #1885

Closed
caugner wants to merge 2 commits into
mainfrom
external-link-whitespace
Closed

caugner wants to merge 2 commits into
mainfrom
external-link-whitespace

Conversation

@caugner

@caugner caugner commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Description

Fix 14 external-link anchors by removing leading and trailing whitespace inside them.

Motivation

Prevent external-link icons from wrapping onto their own line.

Additional details

Use whitespace-free anchor formatting that Prettier preserves.

Validation: Prettier, ESLint, and Lit analysis pass.

Related issues and pull requests

Relates to #1870.

@github-actions

github-actions Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

87132f4 was deployed to: https://fred-pr1885.review.mdn.allizom.net/

@caugner
caugner force-pushed the external-link-whitespace branch from 8043d9d to e110fe5 Compare September 10, 2026 12:20
@caugner
caugner changed the base branch from main to lint-external-link-whitespace September 10, 2026 12:20
@caugner
caugner added this pull request to stack #1887 September 10, 2026 12:20
@caugner caugner changed the title fix(external-link): strip whitespace inside external anchors fix(external-link): strip whitespace inside external anchors + enforce lint rule Sep 10, 2026
@caugner
caugner force-pushed the external-link-whitespace branch from e110fe5 to 2e7fb9e Compare September 10, 2026 12:49
@caugner
caugner force-pushed the external-link-whitespace branch from 2e7fb9e to bfdee92 Compare September 14, 2026 15:08
@caugner
caugner removed this pull request from stack #1887 September 14, 2026 15:09
@caugner caugner changed the title fix(external-link): strip whitespace inside external anchors + enforce lint rule fix(external-link): strip whitespace inside external anchors Sep 14, 2026
@caugner
caugner changed the base branch from lint-external-link-whitespace to main September 14, 2026 15:09
@caugner
caugner marked this pull request as ready for review September 14, 2026 15:34
@caugner
caugner requested a review from a team as a code owner September 14, 2026 15:34
@caugner
caugner requested a review from LeoMcA September 14, 2026 15:34
class="external"
target="_blank"
rel="noreferrer"
>Frontend Developer Career Path</a

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The trailing . is still on its own line, so this sentence renders as Frontend Developer Career Path ↗ . — a stray space before the period, and the period can still wrap onto its own line. Attach it to the closing bracket, matching the pattern used in components/advertising/server.js (>. We pride ourselves…):

                >Frontend Developer Career Path</a
              >.

AI-generated review by Claude

@caugner

caugner commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

Closing following discussion with Leo.

@caugner caugner closed this Sep 17, 2026
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