Block quotes with a blank line between them get merged

Paul M Jones pmjones88 at gmail.com
Thu Oct 19 11:57:32 EDT 2006


On Oct 19, 2006, at 10:15 AM, Eric Daspet wrote:


>

> Le Jeu 19 octobre 2006 14:43, Michel Fortin a écrit :

>> ~ <title>

>> <?php echo $title ?>

>> </title>

>

> and

>

>> ~ <style>

>> ~ <?php echo $stylesheet ?>

>> ~ </style>

>

>

> Both solutions have a *major* problem : you can't copy/paste code. You

> have to add/delete these ~ on each line.

> IMHO the last proposal is the only one which is acceptable :

>

> ~~~

> <title>

> <?php echo $title ?>

> </title>

> ~~~


Another alternative is to use opening and closing braces, perhaps
dual braces, to delimit the code block, and retain the requirement
for indenting:

{{
<style>
<?php echo $stylesheet
</style>
}}

This has the advantage of being unambiguous and mostly unobtrusive,
and you can still copy and paste code. However, it may not be in the
spirit of Markdown; I will leave it to John and Michel to say.


--

Paul M. Jones <http://paul-m-jones.com>

Solar: Simple Object Library and Application Repository
for PHP5. <http://solarphp.com>

Join the Solar community wiki! <http://solarphp.org>

Savant: The simple, elegant, and powerful solution for
templates in PHP. <http://phpsavant.com>



More information about the Markdown-Discuss mailing list