I converted the code below into HTML using draft-convert.

The "code tag" must be converted to a subtag of the "pre tag" when converting.
<pre>
<code />
<code />
<code />
</pre>
But it actually works like the picture below.

This is my conversion code.

Please let me know if there is anything I am missing.
Thank you.