Title: WP-Markdown treating java generics like HTML tags
Last modified: August 20, 2016

---

# WP-Markdown treating java generics like HTML tags

 *  [pythagras](https://wordpress.org/support/users/pythagras/)
 * (@pythagras)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/wp-markdown-treating-java-generics-like-html-tags/)
 * I just had a very frustrating experience with the WP Markdown plugin.
 * With some Java generic code in a code block, ie:
 *  `List<Integer> l = new ArrayList<Integer>();`
 * WP-Markdown was treating <Integer> as HTML, and no matter what I did, the code
   above got turned into something like
 *  `List<Integer> l = new ArrayList</Integer><Integer>();</Integer>`
 * Is there any way to get WP Markdown to behave better with this kind of code? 
   Gist and Stackoverflow don’t have this problem.
 * [http://wordpress.org/extend/plugins/wp-markdown/](http://wordpress.org/extend/plugins/wp-markdown/)

Viewing 1 replies (of 1 total)

 *  [Stanislav Khromov](https://wordpress.org/support/users/khromov/)
 * (@khromov)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/wp-markdown-treating-java-generics-like-html-tags/#post-3493720)
 * Ran into a similar problem.
 * Solved the issue by downloading a newer version of Markdown Extra from:
    [http://michelf.ca/projects/php-markdown/extra/](http://michelf.ca/projects/php-markdown/extra/)
 * Then I renamed the newly downloaded file from markdown.php to markdown-extra.
   php and overwrote the old file in the plugins/wp-markdown folder.
 * Here is an example with your exact code, which runs fine with the new version
   of Markdown Extra:
    [http://app.khromov.se/wiki/java-generics-test/](http://app.khromov.se/wiki/java-generics-test/)
 * It also works correctly with wp-markdown-syntaxhighlighter

Viewing 1 replies (of 1 total)

The topic ‘WP-Markdown treating java generics like HTML tags’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-markdown_d5ecec.svg)
 * [WP-Markdown](https://wordpress.org/plugins/wp-markdown/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-markdown/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-markdown/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-markdown/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-markdown/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-markdown/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Stanislav Khromov](https://wordpress.org/support/users/khromov/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/wp-markdown-treating-java-generics-like-html-tags/#post-3493720)
 * Status: not resolved