将 < 和 > 符号粘贴到编辑器中会转换为 HTML 实体

Hi

Whenever I paste some markdown text into discourse that has < or > within it, they get converted into &lt; and &gt;

For example, if I wanna paste:

<span>test</test>

It gets converted into

&lt;span&gt;test&lt;/span&gt;

We face this issue a lot with people where we tell them to paste their code for review, and their code gets scribbled :confused:

The solution is to do shift-control-v so that it doesn’t rewrite it that way.

Thanks man!

I was going to ask: is there a way to make it the default? Then I searched in the settings the word “paste” and I found:

Enable automatic HTML to Markdown conversion when pasting text into the composer. (Experimental)

Just disabled it, and it works like a charm :heart: