christianalfoni / christianalfoni/markdown-to-react-components

props.target on links are always new

Open
#24 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
132
Forks
14
PR merge metrics
No merged PRs in 30d

Description

If i have this
config:
```
Markdown.configure({
a: ({ children, href, title, target }) => {
console.log(target);
return {children}
},
});
```
and having this in my code
```

{ Markdown('[google](http://www.google.se)').tree }

```

target is always "new" no matter what the markdown is

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with the Markdown.configure link renderer and the example markdown shown in the report. Trace how the link's target value is produced, then verify that it reflects the markdown input rather than always being "new"; add or update coverage if the repository provides a relevant test entry point.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.