fix: retain links across formatted text runs

This commit is contained in:
2026-07-22 19:56:07 +02:00
parent 95341ed81f
commit 3c3904f896
2 changed files with 31 additions and 8 deletions

View File

@@ -349,6 +349,11 @@ function createTextRuns(
(style.hyperlinkProtected === true || style.hyperlink === true)
) {
run.href = pendingHref;
} else if (
!style.hidden &&
style.hyperlinkProtected !== true &&
style.hyperlink !== true
) {
pendingHref = undefined;
}
result.push(run);