Formatting underscores in html code tag using markdown

Level up lunch is full of code snippets generated by pygments but we often reference code within post and pages where the HTML <code> element is used. Often these code snippets include underscores and it looks all funky when markdown processes it. It has caused me to waste time from time to time so thought I would jot it down quick for reference.

What is not working

<code>executionPhase = ExecutionPhase.AFTER_TEST_METHOD</code>

will produce:

executionPhase = ExecutionPhase.AFTERTESTMETHOD

What works

Using markdown double backtick-delimited in a code span will escape processing

<code>
``
executionPhase = ExecutionPhase.AFTER_TEST_METHOD
``
</code>

will produce:

executionPhase = ExecutionPhase.AFTER_TEST_METHOD

Or using a single tick delimiter will wrap in a html code element

`executionPhase = ExecutionPhase.AFTER_TEST_METHOD`

will produce:

executionPhase = ExecutionPhase.AFTER_TEST_METHOD