-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix - anchor tag breaks into parts with partial styling #60
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @bartgloudemans thanks for the PR (and issue!). This will break quite a few things and i need to take a deeper look. So the unit tests should not fail.
The php docs and @SInCE tags are missing, also we need to make a major release (which is not a problem, just saying)
@nadar thanks for allowing the tests to run. This proposed fix is one approach to tackle the issue, based on my limited knowledge of the quill-delta-parser. I'm curious if you maybe have a completely different approach in mind that I'm overlooking. |
@bartgloudemans thanks for the work! I will take a closer look within the next 48hours. (edited: but in general, if the unit tests work, which cover a lot of different content situations, your proposed fix seems to be a good solution anyhow!)
Would you like to share your custom listener? |
In the mean time I've fixed my custom listener, it appeared not to be so complex after all. The 'complexity' lies in the fact that Instead of a string attribute named 'wrapper', it renders a template based on dynamic data. So I needed to split up ( Is there anything else you need from me to move this PR forward? |
@bartgloudemans thanks for the work, i really appreciate it. I will make some small changes in upgrade docs and release version 3.0 asap. |
* validate the fix first * make sure styling of text does not break up anchor tag * dependent test needs fixing * be less ambiguous * fix bad logic * adjust code style * redundant * typo * place since tag back * Update Link.php * Update CHANGELOG.md Co-authored-by: Basil <git@nadar.io>
* php 8.1 * php unit 8.0 * Fix - anchor tag breaks into parts with partial styling (#60) * validate the fix first * make sure styling of text does not break up anchor tag * dependent test needs fixing * be less ambiguous * fix bad logic * adjust code style * redundant * typo * place since tag back * Update Link.php * Update CHANGELOG.md Co-authored-by: Basil <git@nadar.io> * tests and changelog * typo * update tests * rm lockfile * clear cache? * add zip * test v1 Co-authored-by: Bart <bart@supportthesystem.org>
Version 3.0 is published. /~https://github.com/nadar/quill-delta-parser/releases/tag/3.0.0 |
Proposed fix for #59
this is a breaking change as
Link->wrapper
is discardedthis closes #59