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

Desktop: Fix images fail to render in the preview pane for HTML notes #10806

Conversation

personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Jul 31, 2024

Summary

This pull request fixes a regression — image resources fail to render in HTML notes (in the note viewer pane).

This regression was likely caused by 624bfd9HtmlToHtml passed an incorrect object type to utils.imageReplacement, preventing image replacements from happening in HTML notes.

Testing

In addition to fixing the regression, this pull request:

  1. Strengthens types such that TypeScript is more likely to catch similar issues in the future.
  2. Adds an automated end-to-end regression test for this issue.

A type mismatch prevented utils.imageReplacement from running on HTML
images.
@laurent22 laurent22 merged commit 9dbd481 into laurent22:dev Aug 2, 2024
10 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