sirthias/pegdown — Issue #36: Code block followed immediately by a definition isn't rendered correctly
Author: OverZealous
Created: 2011-10-25 07:17:05+00:00
State: open

This is another low-priority oddball. When a fenced codeblock is immediately followed by a "`
`", the codeblock is not processed.

Example:

~~~
this is code
~~~

: this is a definition

If the definition has a term preceding it, it renders as expected:

~~~
this is code
~~~

Term
: this is a definition

Now for the really weird stuff. If I add two linebreaks, the code renders correctly, but the definition now doesn't:

~~~
this is code
~~~

: this is a definition

The same thing happens if we change the fenced code block to a normal code block, but leave the single space:

this is code

: this is a definition

The order matters. A fenced code block coming after a single "dd" always works.