Composer: Add option to disable plaintext markdown input text sanitizing
I am having trouble using the "Markdown as plain text" feature. I tried to use it based on the conversation here.
As a concrete example, suppose I receive the following email from a fellow Evolution user who writes in Markdown as plain text mode:
Here are two code snippets:
1. Some JS code:
```
if (EvoEditor.mode == EvoEditor.MODE_PLAIN_TEXT) {
- EvoEditor.convertTags();
- EvoEditor.convertParagraphs(document.body, 0, EvoEditor.NORMAL_PARAGRAPH_WIDTH, didCite);
+ EvoEditor.convertParagraphs(document.body, 0, EvoEditor.NORMAL_PARAGRAPH_WIDTH, didCite);
+ EvoEditor.convertParagraphs(document.body, 0, EvoEditor.NORMAL_PARAGRAPH_WIDTH, didCite);
+ }
```
2. Some C code:
```
g_object_class_install_property (
object_class,
PROP_NORMAL_PARAGRAPH_WIDTH,
g_param_spec_int (
"normal-paragraph-width",
```
When I hit "reply", I get the following text:
On Wed, 2023-05-24 at 18:13 +0200, … wrote:
> Here are two code snippets:<br>
>
> 1. Some JS code:<br>
>
> ```<br>
> if (EvoEditor.mode == EvoEditor.MODE_PLAIN_TEXT) {<br>
> - EvoEditor.convertTags();<br>
> - EvoEditor.convertParagraphs(document.body, 0, EvoEditor.NORMAL_PARAGRAPH_WIDTH, didCite);<br>
> + EvoEditor.convertParagraphs(document.body, 0, EvoEditor.NORMAL_PARAGRAPH_WIDTH, didCite);<br>
> + EvoEditor.convertParagraphs(document.body, 0, EvoEditor.NORMAL_PARAGRAPH_WIDTH, didCite);<br>
> + }<br>
> ```<br>
>
> 2. Some C code:<br>
>
> ```<br>
> g_object_class_install_property (<br>
> object_class,<br>
> PROP_NORMAL_PARAGRAPH_WIDTH,<br>
> g_param_spec_int (<br>
> "normal-paragraph-width",<br>
> ```<br>
These <br>
tags are unnecessary (the original was valid Markdown, with proper line breaks), and they are in fact invalid in the code blocks. Even when they are needed, they look out of place when sending Markdown as plaintext (as opposed to Markdown as HTML).
It would be nice to support writing Markdown as plain text without mangling the text from incoming emails.