Skip to content

Conversation

@personalizedrefrigerator
Copy link
Collaborator

Summary

This pull request adds partial support for importing internal OneNote links. In particular, internal links can be imported if they have a page-id that points to the NotebookManagementEntityGuid in the metadata for the imported page revision.

This pull request works by 1) including the NotebookManagementEntityGuid for each page in the rendered output and 2) using the NotebookManagementEntityGuid to resolve onenote: links to file paths during the import process.

Notes

This does not allow the internal link from #13549 to be imported. Although that link specifies a page-id, the page-id does not seem to match an ID in the imported page metadata. There does exist a page metadata object with a matching ID in the .one file, but it is not imported (perhaps it's associated with an earlier page revision?).

Further debugging will be necessary to determine why the internal link in #13549's test file points to page metadata that doesn't seem to be associated with an imported page.

Testing

An existing test file (used in the "should remove hyperlink from title" test) includes an internal link that is now imported successfully.

@laurent22 laurent22 merged commit 8e36644 into laurent22:dev Dec 18, 2025
11 checks passed
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.

2 participants