Consecutive code blocks

David Parsons orc at pell.portland.or.us
Wed Apr 13 21:09:00 EDT 2011



On Apr 13, 2011, at 5:59 PM, David Chambers wrote:


> Hi folks,

>

> I just wrote some Markdown which featured the following code snippets:

>

> <h1>TXJS 2011 Speakers</h1>

> <ul>

> <li><span>Brendan Eich</span></li>

> <li><span>Alex Russell</span></li>

> <li><span>Douglas Crockford</span></li>

> <li><span>Paul Irish</span></li>

> </ul>

>

> ul {

> list-style: square outside;

> color: #ccc;

> }

>

> li>span {

> color: #000;

> }

>

> The horrible styling above highlights the trailing whitespace a few

> lines from the end.

>

> I would love this to be converted to two code blocks rather than one.



How about putting a dummy html comment in the middle, like:

Code block
One
<!-- two code blocks, please -->
Code block
Two



-david parsons


More information about the Markdown-Discuss mailing list