FujoWebDev / FujoWebDev/astrolabe

Do not add link in parenthesis if it's the same as linked text

Open Beginner friendly
#51 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
8
Forks
4
PR merge metrics
No merged PRs in 30d

Description

[`remarkExpandLinks`](https://github.com/FujoWebDev/astrolabe/blob/21781aafe366306272bc547946aa22419df8f3d5/adapters/adapter-starter/bluesky/src/remark-plugins.ts#L74) will expand a linked word with the URL next to the text.

For example:

[fujocoded](https://fujocoded.com) => fujocoded (https://fujocoded.com)

We should not expand it when the linked text is the same as the site being linked.

[https://fujocoded.com](https://fujocoded.com) => https\://fujocoded.com

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in adapters/adapter-starter/bluesky/src/remark-plugins.ts at the remarkExpandLinks implementation around line 74. Compare the linked text with its URL before expanding the link, and verify that matching text stays unchanged while different text still includes the URL in parentheses.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
content
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.