Spaces in HTML->MD conversion from Email turns lines into code blocks


(Stephen Chung) #1

Repo:

  1. Send an email with the following:
Hi,

We have a requirement.
Something else.
  1. The email generated will have the following text/plain version:
Hi,

We have a requirement.
Something else.
  1. The email generated will have the following HTML version:
...
<body>
    <p>Hi,</p>
    <p>We have a requirement.
    Something else.</p>
</body>
...
  1. If prefer html in email is set, then the HTML version will be taken to convert to MarkDown.

  2. The MarkDown converted will be:

Hi,

      We have a requirement.
      Something else.
  1. Notice that there are SIX spaces in front of the paragraph (perhaps created by the four spaces in the HTML between </p> and <p>, plus a CRLF pair. Also, the second line because a separate paragraph with leading spaces. These spaces cause the paragraphs to become code blocks.

Any way to turn off code-block indent from emails
(Régis Hanol) #2

Do you have a raw email we can use to test this?


(Stephen Chung) #3

Can I forward one to you? Not sure if forwarded will be the same as the raw one…

Or should I copy the raw stream and send to you?’


(Régis Hanol) #4

PM the raw version of the email.