-
-
Notifications
You must be signed in to change notification settings - Fork 458
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
ExternalHyperlink with multiple children #1120
Conversation
Sure thing, will have a look at this PR Yes most likely it won't be compatiable, not a problem, I am planning for a v7 release soon, this can be part of it Thanks! |
Codecov Report
@@ Coverage Diff @@
## master #1120 +/- ##
=======================================
Coverage 99.30% 99.30%
=======================================
Files 313 313
Lines 3578 3579 +1
Branches 381 381
=======================================
+ Hits 3553 3554 +1
Misses 24 24
Partials 1 1
Continue to review full report at Codecov.
|
Fantastic, let me know if I can do anything else here! Great library. :) |
Can you update It is failing |
Sure yes, if you can update that documentation, that would be doubly appreciated! |
Nice will make me learn about internal hyperlinks now ... :). Will get this done in the next 30min or so. |
I think that there is a similar capability for internal hyperlinks, if we are making a backwards incompatible change for v7, is it also worth updating that now? I haven't confirmed that this actually works, but I suspect it will. That is changing: new InternalHyperlink({
child: new TextRun({
text: "Anchor Text",
style: "Hyperlink",
}),
anchor: "myAnchorId",
}) To: new InternalHyperlink({
children: [
new TextRun({
text: "Anchor Text",
style: "Hyperlink",
}),
new TextRun({
text: "with style",
bold: true,
style: "Hyperlink",
}),
],
anchor: "myAnchorId",
}) Seems like we should from writing the docs ...!? Let me know. |
Yes updating that would also be good (but test afterwards) |
Sounds good. Tests seem to be working locally, will update this and demo 21 as well. Thanks for the fast response! |
Perfect! |
Let me know if there is anything else to do on this. Off for my eve, but can pick stuff up tomorrow. |
Merged, looks good! |
Thanks! Looking forward to this being released! 🚀 |
I am trying to have multiple
TextRun
children be in the same ExternalHyperlink. The way that the API is designed, there is only a singlechild
, however, I have modified and tested multiple children on a word doc locally, and the hyperlink could potentially be extended to take multipleTextRun
s?This PR is not backwards compatible, and more work/advice would be needed to get it into shape. Looking for input to see if it is worth adding something along these lines?
See also #1119.