HTML generation from markdown leads to mis-detected quote in Fastmail
-
benny
- State changed from new to accepted
Thanks for the feedback. I'm not sure I like the suggested solution since the attribution line is not part of the quoted content, but I also do not see any obvious alternatives :) Maybe I just need the attribution to be clearly marked as well:
<div class="plaintext"> <p>This is the main body of the email, which should not be hidden as a quote.</p> </div> <div class="quoted"> <div class="attribution"> <p>On 1 Jan 1970, at 0:00, no one wrote (the important thing about this line is that it end with a colon):</p> </div> <blockquote> <p>Some text, blaha blah bah.</p> </blockquote> </div>As you probably know, these things can be very fragile and it's not unlikely that some other email client wouldn't expect this structure :)
It's also not a straightforward change to make in MailMate (due to when the attribution line is generated), but I'll look into it and update this ticket if anything changes.
-
benny
I realize that Outlook has a non-blockquote style of quoting. In that case, a structure like the above would also make more sense (if email clients ever agreed on doing anything the same way).
(I also have an open request to support generating a multi-line attribution.)
-
Neil Jenkins
I would have thought the simplest fix (and I would be surprised if it broke anything, as the structure is common), is to simply remove the
<div>wrapping the content. This would be fine:<p>This is the main body of the email, which should not be hidden as a quote.</p> <p>On 1 Jan 1970, at 0:00, no one wrote (the important thing about this line is that it end with a colon):</p> <blockquote> <p>Some text, blaha blah bah.</p> <div> <p>Here is the second line.</p> <hr> <p>Some more text.</p> <p>And some more.</p> </div> </blockquote>
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.