Skip to content

Conversation

@RicLeP
Copy link
Contributor

@RicLeP RicLeP commented Oct 29, 2025

The standard TipTap Link mark didn’t support all the features of Storyblok’s links. This new Link mark implements email links, anchors and custom attributes

@codecov-commenter
Copy link

codecov-commenter commented Oct 29, 2025

Codecov Report

❌ Patch coverage is 82.14286% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.64%. Comparing base (c6c0af9) to head (9e43659).

Files with missing lines Patch % Lines
src/Mark/Link.php 82.14% 5 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main      #32      +/-   ##
============================================
+ Coverage     62.83%   67.64%   +4.81%     
- Complexity       18       28      +10     
============================================
  Files             5        6       +1     
  Lines           113      136      +23     
============================================
+ Hits             71       92      +21     
- Misses           42       44       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

{
return [
'HTMLAttributes' => [
'target' => '_blank',
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure this should be the default, why do you think it should?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@edodusi I agree, this was taken from the base Link class in TipTap, I wanted to minimise what changes my replacement makes but as Storyblok includes a target in the JSON we don’t need this. I’ll update the PR.

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.

3 participants