Skip to content
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: Only convert html links if they use http or https protocol #459

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

dvanoni
Copy link
Owner

@dvanoni dvanoni commented Jan 31, 2024

Fixes #458

Problem

Notion only supports links that use the http: or https: protocol. This would cause an error when trying to sync notes with other types of links such as zotero:.

Solution

To resolve this, the link part of a rich text object is now only included if the link uses http: or https:.

Copy link
Contributor

🤖 Build Bot

✅ Successful build

⬇️ Download: notero-0.5.14-378

@dvanoni dvanoni merged commit 12c48d6 into main Jan 31, 2024
5 checks passed
@dvanoni dvanoni deleted the 458-sanitize-note-links branch January 31, 2024 07:31
@dvanoni dvanoni mentioned this pull request Feb 8, 2024
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.

Note sync fails when encountering invalid URL
1 participant