Fix HTML preview rendering in Tracy panel#49
Conversation
|
Oh no, AI slop detected ~> it still doesn't work. I'm reverting what was merged previously. I definitely welcome every contribution and fixes, but it mas work, right? :) To help you debug it, attaching my testing mail that renders wrongly. 20260215131357-15d6ea.mail.txt (just rename to .mail only and put to relevant temp)
|
|
I'm totally lost - after the revert it sill doesn't work - so I'm fixing the rendering. And for you, I guess, remains relanding the better html extraction. |
|
Thanks for looking into this and sorry for the extra work here. I’ll close this PR and leave the current fix as-is. If I feel confident enough to improve the HTML extraction later, I’ll do it as a small separate PR focused only on the extraction itself. Sorry for the trouble caused by the previous change. |
|
No worries :) Just the next time, ideally attach also the testing mail to allow us create a unit test to cover the hmtl extraction. |

Fixes #47.
Summary
Preview HTMLthrough a dedicated server-side preview endpoint<base>tag when the email already defines oneWhy
The regression does not seem to be in MIME extraction itself. The extracted HTML is correct, but the Tracy panel preview was still reconstructing the iframe document client-side, which is fragile for full HTML emails containing
<head>and<style>.