Consecutive code blocks

David Chambers david.chambers.05 at gmail.com
Wed Apr 13 21:22:59 EDT 2011



>

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



> >

> Code block



> > One



> > <!-- two code blocks, please -->



> > Code block

> Two


It's good to know that this is a possibility, but that's exactly the sort of
hack I'm eager to avoid. ;)

~~~
foo
~~~
~~~
bar
~~~

Even the above feels a little dirty to me.

David


On 13 April 2011 18:09, David Parsons <orc at pell.portland.or.us> wrote:


>

> 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

> _______________________________________________

> Markdown-Discuss mailing list

> Markdown-Discuss at six.pairlist.net

> http://six.pairlist.net/mailman/listinfo/markdown-discuss

>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://six.pairlist.net/pipermail/markdown-discuss/attachments/20110413/6ac59774/attachment.htm>


More information about the Markdown-Discuss mailing list