Change <br> into \r\n in incoming emails

Hi,

I extremely glad to use incoming emails from external issue tracker. Original ticket uses markdown. When it contains a table, Discourse handles the syntaxt not well as shown below.

Original markdown
Task was updated by in project Tasks at 14 Jul 2022 08:36.

<img style="border: 0;" src="upload://x.png" width="16" height="16" alt=""> [Link ](https://example.com)[Ticket name](https://example.com) Created by 
 

| <img src="upload://y.svg" alt="" width="24" height="24"> | <br>| Поддержка | ОС | Ansible core (pkg) | Python |<br>| --- | --- | --- | --- |<br>| <ins>нет</ins> | RedOS 7.2 | 2.6.2 | 2.7.15 |<br>| <ins>+</ins> | RedOS 7.3 | 2.9.21 | 3.8.2 |<br>| <ins>+</ins> | MobaXterm | 2.11.10 | 3.6.8 |<br>| <ins>скорее +</ins> | Oracle Linux 8.5 | 2.12.2 (5.4.0) | 3.8.12 |<br>| <ins>скорее +</ins> | Ubuntu 20.04 | 2.9.6 | 3.8.10 |<br>| <ins>скорее +</ins> | Ubuntu 22.04 | 2.10.8 | 3.10.4 |<br>| <ins>скорее +</ins> | Debian 11 | 2.10.8 | 3.9.2 |<br><ins>⏎</ins><br><ins>**Bold comment.**</ins><br>[View](https://example.com#focus=Comments-83-7062926.0-0) [Reply](https://example.com?replyTo=83-7062926)<br> |
| - | - |
| Relates to | [Ticket name ](https://example.com) |
| Resolved | Issue was resolved. |
| State | Open → Fixed |

I found that editing the post just replacing <br> to \r\n makes the post prettier:

Could somebody help to implement such conversion into Discourse? I found relative topic Email-in containing <br></b>, where some changes described.