Skip to content

Fix preview text#8760

Merged
hamza221 merged 1 commit into
mainfrom
fix/preview-text
Aug 18, 2023
Merged

Fix preview text#8760
hamza221 merged 1 commit into
mainfrom
fix/preview-text

Conversation

@hamza221

@hamza221 hamza221 commented Aug 16, 2023

Copy link
Copy Markdown
Contributor

ref #8222
fixes #8323

bugs fixed

  • Image alt removed
  • Links rendered as[Text](https://example.com) are now simply => Text
  • Message previews show in HTML format

@hamza221

Copy link
Copy Markdown
Contributor Author

Checking for textBody first might cause #8323 and

Image

@ChristophWurst

Copy link
Copy Markdown
Member

Checking for textBody first might cause #8323 and

Image

That's because the sender's client sends a very poor quality text version of the HTML email, right?

@hamza221

Copy link
Copy Markdown
Contributor Author

Yes here is problematic example from gmail
image

@hamza221

Copy link
Copy Markdown
Contributor Author

Failing test looks related to #8694 @JohannesGGE

@ChristophWurst

Copy link
Copy Markdown
Member

Failing test looks related to #8694

I think it's from #8752

@JohannesGGE

Copy link
Copy Markdown
Contributor

Fixed it in #8759
Rebase schould fix it

Comment thread composer.json
"ezyang/htmlpurifier": "4.16.0",
"gravatarphp/gravatar": "dev-master#6b9f6a45477ce48285738d9d0c3f0dbf97abe263",
"html2text/html2text": "^4.3.1",
"hamza221/html2text": "^1.0",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you have to fork your own version? 🙀

@hamza221 hamza221 Aug 18, 2023

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I have a Pr open since march, I think it's about time to give up
mtibben/html2text#116

@miaulalala miaulalala left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hamza221 hamza221 enabled auto-merge August 18, 2023 09:29
@hamza221 hamza221 disabled auto-merge August 18, 2023 09:30
Signed-off-by: hamza221 <hamzamahjoubi221@gmail.com>
@hamza221 hamza221 enabled auto-merge August 18, 2023 09:30
@hamza221 hamza221 merged commit b5c7aa5 into main Aug 18, 2023
@hamza221 hamza221 deleted the fix/preview-text branch August 18, 2023 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Message previews show in Html format

4 participants