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

Code block error. #163

Closed adi-mishra closed 9 years ago

adi-mishra commented 9 years ago

When having two code blocks with two new lines in each, then it seems to not fence off the second code block.

for example:

this is

a test

string

with two

code blocks

changes into

'

this is

a test

string
<br/>with two</p><p>code blocks<br/>

'

where is doesn't respect the second code block.

vsch commented 9 years ago

A blank line must precede the opening code fence sequence. You need to insert a blank line after the line: string.