Skip to content

Commit

Permalink
Merge pull request #17089 from bernhardoj/fix/16525-fix-link-md-lost-…
Browse files Browse the repository at this point in the history
…when-copying

fix anchor text is not recognized as link
  • Loading branch information
luacmartins authored Apr 11, 2023
2 parents a177ba3 + c25af39 commit d196a12
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ const BaseAnchorForCommentsOnly = (props) => {
target: props.target,
}}
href={linkProps.href}

// Add testID so it gets selected as an anchor tag by SelectionScraper
testID="a"

// eslint-disable-next-line react/jsx-props-no-spreading
{...rest}
>
Expand Down

0 comments on commit d196a12

Please sign in to comment.