{.quotelead} strings in markdown2html messages
Aitor Soroa
aitors2005 at gmail.com
Tue Jun 29 18:36:57 UTC 2021
Hi,
I'm using mutt 2.1 on an ubuntu 20.04 distribution.
I am a big fan of the markdown2html script (in contrib), which allows me to
write messages in markdown format. The script converts the message into html
and mutt sends them as attachments.
However, lately the script writes strange `{.quotelead}` strings, as can be
seen in the recipe below. I'd rather get rid of those, but unfortunately
i don't know how. Any help in this regard would be much appreciated!
So, say I have this message
-------------------------------------
From: Bob <bob at mail.com>
To: Alice <alice at mail.com>
Cc:
Bcc:
Subject: Re: messages
Reply-To:
On Mon, Jun 14, 2021 at 02:10:49PM +0200, Bob wrote:
> This seems to work ok so far.
>
> On Mon, Jun 14, 2021 at 02:08:47PM +0200, Alice wrote:
> > This is the first reply.
> >
> > On Mon, Jun 14, 2021 at 02:08:07PM +0200, Bob wrote:
> > > This is the first message.
> > >
> > > best,
> >
> > --
> > keep cool
> > bob
>
> --
> keep cool
> alice
--
keep cool
bob
-------------------------------------
which I feed to markdown2html via
$ cat msg.txt | python3 ~/src/mutt/contrib/markdown2html
And I obtain the following html output. Note the "{.quotelead}" strings in
the output.
-------------------------------------
text/html
<!DOCTYPE html>
<html><head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0, user-scalable=yes"
name="viewport"/>
<title>HTML E-Mail</title>
</head><body class="email">
<p>From: Bob <a class="email" href="mailto:bob at mail.com">bob at mail.com
</a><br/>
To: Alice <a class="email" href="mailto:alice at mail.com">alice at mail.com
</a><br/>
Cc: Bcc: Subject: Re: messages<br/>
Reply-To:</p>
<p class="quotelead" style="font-style: italic; margin-bottom: -1em; color:
#999; font-size: 80%">On Mon, Jun 14, 2021 at 02:10:49PM +0200, Aitor Soroa
wrote:</p>
<blockquote class="quote initial" style="padding: 0 0.5em; margin: 0;
font-style: italic; border-left: 2px solid #ccc; color: #999; font-size:
80%">
<p>This seems to work ok so far.</p>
<p class="quotelead" style="font-style: italic; margin-bottom: -1em; color:
#999; font-size: 80%">> On Mon, Jun 14, 2021 at 02:08:47PM +0200, Alice
wrote:</p>
</blockquote>
<blockquote class="quote initial" style="padding: 0 0.5em; margin: 0;
font-style: italic; border-left: 2px solid #ccc; color: #999; font-size:
80%">
<p>This is the first reply.<br/>
> {.quotelead}> > On Mon, Jun 14, 2021 at 02:08:07PM +0200, Bob
wrote:</p>
</blockquote>
<blockquote class="quote initial" style="padding: 0 0.5em; margin: 0;
font-style: italic; border-left: 2px solid #ccc; color: #999; font-size:
80%">
<p>Thsi is the first message.<br/>
> > > > best,<br/>
> > -- > keep cool<br/>
> bob</p>
<p>-- keep cool<br/>
alice</p>
</blockquote>
<div class="signature" style="color: #999; font-family: monospace;
white-space: pre; margin: 1em 0 0 0; font-size: 80%"><span
class="leader">-- </span><br/>keep kool <br/>
bob</div>
</body></html>
-------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mutt.org/pipermail/mutt-users/attachments/20210629/476fb9db/attachment.html>
More information about the Mutt-users
mailing list