From: Yuri T. <qar...@gm...> - 2008-12-24 22:04:39
|
Actually, it's the lack of spaces after blockquotes. If you change Matthias's example to make sure there is a space after every angle bracket, it works quite reasonably. I think this is a bug, actually, because there is no reason we should require that space, and Matthias's example does work many (though not all) other implementations. It looks like a small change makes the example work, though it breaks one of our tests. Committed the change for now (as 8f3f5a9) and will try to look into what's the deal with the test. - yuri On Wed, Dec 24, 2008 at 7:07 PM, Waylan Limberg <wa...@gm...> wrote: > 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... > ------------------------------------------------------------------------------ > _______________________________________________ > Python-markdown-discuss mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss > -- http://sputnik.freewisdom.org/ |