[kramdown-users] feature suggestion: styling in code blocks

Thomas Leitner t_leitner at gmx.at
Thu Oct 14 15:37:49 EDT 2010


On 2010-10-14 17:27 +0700 Shawn Van Ittersum wrote:
> At issue here is whether kramdown shall allow multi-line code spans.
> I say it should.  And if it does, then it should also allow blank
> lines in the middle of code spans.  And then code spans will not be
> able to cross blocks, because any block delimiters crossed will be
> contained by the code span and ignored by kramdown, and thus are not
> considered block delimiters by virtue of being contained by the code
> span.

No, this is not at issue: span level elements can only occur *within*
block level elements and blank lines separate consecutive paragraphs.
Ergo: code spans cannot include blank lines when used in paragraphs.
The same is true for all other block level elements that can contain
code spans.

-- Thomas


More information about the kramdown-users mailing list