Title: code blocks not rendering correctly
Last modified: August 21, 2016

---

# code blocks not rendering correctly

 *  [jbowman2014](https://wordpress.org/support/users/jbowman2014/)
 * (@jbowman2014)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/code-blocks-not-rendering-correctly/)
 *     ```
       <br />
       <code></code><code></code>java
           class MyIndex implements Supplier<Integer> {
               int index = 0;
               @Override
               public void get() {
                   return index++;
               }
           }
       <code></code>
       ```
   
 * renders as the following:
 *     ```
       <br />
       <pre class="wp-code-highlight prettyprint linenums:1"><code class="java">    class MyIndex implements Supplier<Integer> {<br />
               int index = 0;<br />
               @Override<br />
               public int get() {<br />
                   return index++;<br />
               }<br />
           }<br />
       ```
   
 * which causes the <code class=’java’> to be displayed to the user which is undesirable.
 * I realize this is part of Markdown Extra, but is there anything I can do here?
   N.B. if I take off the triple quote java and closing triple quote characters 
   and just leave the code indented by 4 spaces (ie normal Markdown), the only difference
   is the `<code>` tag does not include the `class` attribute.
 * ** due to formatting problems here, please see this gist: [https://gist.github.com/jeffbowman/5d96ad6a98576036bfea](https://gist.github.com/jeffbowman/5d96ad6a98576036bfea)
 * [https://wordpress.org/plugins/jetpack-markdown/](https://wordpress.org/plugins/jetpack-markdown/)

Viewing 1 replies (of 1 total)

 *  [404](https://wordpress.org/support/users/ahspw/)
 * (@ahspw)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/code-blocks-not-rendering-correctly/#post-4935811)
 * Hi Jeff,
 * It seems that Jetpack Markdown module has compatibility issues with code highlighters.
   
   Another issue was reported [here](http://wordpress.org/support/topic/there-is-something-wrong-with-pasting-code).
   Please report this issue to the original authors at [Jetpack Support forums](https://wordpress.org/support/plugin/jetpack).
 * Thanks for your feedback.

Viewing 1 replies (of 1 total)

The topic ‘code blocks not rendering correctly’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jetpack-markdown.svg)
 * [JP Markdown](https://wordpress.org/plugins/jetpack-markdown/)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack-markdown/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack-markdown/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack-markdown/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack-markdown/reviews/)

## Tags

 * [markdown](https://wordpress.org/support/topic-tag/markdown/)

 * 1 reply
 * 2 participants
 * Last reply from: [404](https://wordpress.org/support/users/ahspw/)
 * Last activity: [11 years, 12 months ago](https://wordpress.org/support/topic/code-blocks-not-rendering-correctly/#post-4935811)
 * Status: not resolved