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
will produce:
executionPhase = ExecutionPhase.AFTERTESTMETHOD
What works
Using markdown double backtick-delimited in a code span will escape processing
will produce:
executionPhase = ExecutionPhase.AFTER_TEST_METHOD
Or using a single tick delimiter will wrap in a html code element
will produce:
executionPhase = ExecutionPhase.AFTER_TEST_METHOD