title: Commonmark for Java - I want to render without paragraphs?
body: <p>I'm using the Atlassian Commonmark API found <a href="https://github.com/atlassian/commonmark-java" rel="nofollow noreferrer">here</a> to parse Markdown to HTML.<br>
  Works beautifully, but tends to add <code>&lt;p</code>and <code>&lt;/p&gt;</code>to the beginning and end of every parsed String.  </p>
  
  <p>Has anyone used the API extensively in the past and/or has any idea how I could get it to stop doing this?<br>
  Other than manually removing the paragraph afterwards, that is, which feels ... unclean somehow.</p>
  
  <p>Edit for clarification: The converted code snippets are intended for use in an HTML table, so I don't need the paragraph bits before and after them.</p>
  
  <p>The Markdown input might be:</p>
  
  <pre><code>####Text for the table here.
  </code></pre>
  
  <p>The output I'm getting is: </p>
  
  <pre><code>&lt;p&gt;&lt;h6&gt;Text for the table here.&lt;/h6&gt;&lt;/p&gt;
  </code></pre>
  
  <p>What I want is simply for the paragraph snips not to be added:</p>
  
  <pre><code>&lt;h6&gt;Text for the table here.&lt;/h6&gt;
  </code></pre>