sirthias / pegdown

A pure-Java Markdown processor based on a parboiled PEG parser supporting a number of extensions
http://pegdown.org
Apache License 2.0
1.29k stars 218 forks source link

Issue with empty code-blocks #221

Open AntoniBertel opened 8 years ago

AntoniBertel commented 8 years ago

Hi,

```javascript\n\n```

Github will be display this code as empty code block, but parser will be display it as plain markdown.

Before fix:

<p>```javascript</p>
<p>```</p>

After fix:

<p><code>javascript

</code></p>