Disable indent code block for emails


(Stephen Chung) #1

Many posts in my forums are created via email. They do not contain code.

Would appreciate a setting to turn off the four-character code-block feature of Markdown when the post originated from an email.

That is to prevent many email paragraphs being turned into code blocks due to paragraph indents.


#2

I wholeheartedly second this request with an extra :heart:.


(Sam Saffron) #3

hmmm … I thought we had incoming email prefer html and that is default on?

So you are saying you have people composing stuff in plain text mode and indenting?

Can you reply to this post via email with an example problem?


(Régis Hanol) #4

No, it’s the email client that’s adding these whitespaces (in the HTML version).

The actual bug is that our html-to-markdown library isn’t interpreting whitespace as well as the browser does.

It’s been on my TODO list since the inception of incoming email support.


(Stephen Chung) #5

We do have emails sent in text-only. Usually sent by people with older email systems, but that is not at all rare.

What is rare is email containing code fragments.


(Paradeiser) #6

+1
I fully second this!