WP-Markdown treating java generics like HTML tags

I was trying to fix this for the longest time as well. It seems that the problem is not the rendering, but the editor – when you save, it updates your post.

I found a checkbox under Settings -> Writing called “WordPress should correct invalidly nested XHTML automatically”. Unchecking this checkbox fixed the problem.