Markdown rendering messes up reply prefixes
By default, email replies in Thunderbird begin with HTML like this:
<div class="moz-cite-prefix">On 5/3/22 1:45 PM, Ty Mick wrote:<br></div>
<blockquote type="cite" ...
It's good that Markdown Here Revival ignores <blockquote>
s when rendering Markdown, but it would be nice if it ignored those div.moz-cite-prefix
blocks as well. As it stands, the extension currently converts the above HTML to the following when rendering Markdown:
<div class="markdown-here-wrapper" data-md-url="">
<p>On 5/3/22 1:45 PM, Ty Mick wrote:</p>
<p></p>
<div class="markdown-here-exclude">
<p></p>
<blockquote type="cite" ...
Steps to reproduce
-
Start a reply to an email.
-
Toggle Markdown rendering.
-
Note the unnecessarily added paragraph margin beneath the reply prefix.
-
If you're using the ThunderHTMLedit add-on, note the HTML change as well.
Incidentally, the extra space added to the beginning of the blockquote in my screen shot is due to the empty <p>
added to the beginning of it, since I'm using the following custom CSS in my emails:
blockquote p:first-of-type {
margin-top: unset;
}
All the empty <p>
s that are being added everywhere is a separate issue, though.
Versions
- Thunderbird version: 91.9.0 (64-bit)
- Markdown Here Revival version: 3.3.1
- Operating system: macOS 12.3.1 (21E258)