Skip to content

fix(odf): keep text links to slides when importing ODP - #545

Open
isboston wants to merge 1 commit into
Euro-Office:mainfrom
isboston:fix/518-slide-link
Open

isboston wants to merge 1 commit into
Euro-Office:mainfrom
isboston:fix/518-slide-link

Conversation

@isboston

@isboston isboston commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Closes #518.

Set the relationship before converting the linked text, since ending a span writes its run. When a run has no explicit styling, use the active hyperlink ID to decide whether it needs run properties.

The two-slide fixture reproduces the failure on main: slide1.xml.rels points to slide2.xml, but the linked text has no click action. With the fix, x2t converts the same fixture and the linked run resolves to slide2.xml. The regression test checks the action, its relationship target and that the surrounding text stays unlinked.

Signed-off-by: isboston <72318280+isboston@users.noreply.github.com>
@isboston
isboston requested a review from a team as a code owner December 4, 2026 13:07
@isboston
isboston requested review from chrip and rikled and removed request for a team December 4, 2026 13:08

This branch has not been deployed

No deployments
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.

ODP links to another slide are lost on import

1 participant