From: Waylan L. <wa...@gm...> - 2008-12-24 21:07:34
|
Actually markdown does blockquotes out of the box. The email style is the markdown syntax for blockquotes [1] with some restrictions. The reason your example doesn't work as expected is that markdown *insists* on a blank line between each block-level element. So either of the following will give you your expected output: foo wrote: > bar wrote: > > > baz > > whatever > > > quux > > right > wrong Or: foo wrote: > bar wrote: > > baz > whatever > > quux > right wrong Note that the double quoted lines have a space between the >s. Again, this is a requirement of the markdown syntax. To play with it, I suggest babelmark [2]. So to answer your question directly, no, there is no extension as the existing syntax is good enough for most (all?) users. However, if you want to tweak the existing behavior, then you are welcome to write your own extension. I suggest looking at the code on gitorious [3] which will be released as 2.0 soonish. It's much easier to alter the core than in 1.7. The docs [4] should help you out with that. Just be aware that until 2.0 is released, the API is subject to change - although I don't anticipate much change. [1]: http://daringfireball.net/projects/markdown/syntax#blockquote [2]: http://tinyurl.com/9xgjh3 [3]: http://gitorious.org/projects/python-markdown/repos/mainline [4]: http://gitorious.org/projects/python-markdown/repos/mainline/blobs/master/docs/writing_extensions.txt On Wed, Dec 24, 2008 at 3:31 PM, Matthias Urlichs <sm...@sm...> wrote: > Hi, > > Is there an extension for email-style quoting, so that text like ... > > foo wrote: >> bar wrote: >>> baz >> whatever >>> quux >> right > wrong > > ... looks reasonably sane (i.e. nested blockquote tags, ideally with > support for RFC 2646)? > > Pointers appreciated. > > -- > Matthias Urlichs | {M:U} IT Design @ m-u-it.de | sm...@sm... > Disclaimer: Das Zitat wurde zufällig ausgewählt. | http://smurf.noris.de > - - > Gerade der Freie sucht den Schein der Freiheit am wenigsten. > -- Jean Paul > > ------------------------------------------------------------------------------ > _______________________________________________ > Python-markdown-discuss mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss > -- ---- Waylan Limberg wa...@gm... |