I have a doubt about the standard syntax (actually, it's the only test that maruku doesn't pass yet). Lists MUST be preceded by an empty line? So the following are only 4 paragraphs, without list items, right? ----------- Paragraph and no space: * ciao Paragraph and 1 space: * ciao Paragraph and 3 spaces: * ciao Paragraph and 4 spaces: * ciao ----------- In other words, a paragraph, once started, eats everything until a blank line? -- Andrea Censi "Life is too important to be taken seriously" (Oscar Wilde) Web: http://www.dis.uniroma1.it/~censi
* Andrea Censi <andrea at censi.org> [2006-12-29 18:50]:> In other words, a paragraph, once started, eats everything > until a blank line?Except blockquotes and headings. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>
On 12/29/06, Robert Ullrey <robert_ullrey at mac.com> wrote:> This is true, but I find that you can override the paragraph gobble by adding three spaces after a line.Are you talking about a specific implementation, or the syntax in general? Which implementation? -- Andrea Censi "Life is too important to be taken seriously" (Oscar Wilde) Web: http://www.dis.uniroma1.it/~censi
On 12/29/06, A. Pagaltzis <pagaltzis at gmx.de> wrote:> * Andrea Censi <andrea at censi.org> [2006-12-29 18:50]: > > In other words, a paragraph, once started, eats everything > > until a blank line? > > Except blockquotes and headings.or html: Paragraph with html after <div></div> Becomes: <p>Paragraph with html after</p> <div></div> -- Andrea Censi "Life is too important to be taken seriously" (Oscar Wilde) Web: http://www.dis.uniroma1.it/~censi
Le 2006-12-29 ? 12:45, Andrea Censi a ?crit :> ----------- > Paragraph and no space: > * ciao > > Paragraph and 1 space: > * ciao > > Paragraph and 3 spaces: > * ciao > > Paragraph and 4 spaces: > * ciao > ----------- > > In other words, a paragraph, once started, eats everything until a > blank line?From the Markdown 1.0.1 (and PHP Markdown 1.0.1) changelog:> Sort-of fixed a bug where lines in the middle of hard-wrapped > paragraphs, which lines look like the start of a list item, would > accidentally trigger the creation of a list. E.g. a paragraph that > looked like this: > > I recommend upgrading to version > 8. Oops, now this line is treated > as a sub-list. > > This is fixed for top-level lists, but it can still happen for sub- > lists. E.g., the following list item will not be parsed properly: > > * I recommend upgrading to version > 8. Oops, now this line is treated > as a sub-list. > > Given Markdown?s list-creation rules, I?m not sure this can be fixed.Obviously, the same rule applies to unordered lists too. I don't think this is documented in the syntax documentation. Michel Fortin michel.fortin at michelf.com http://www.michelf.com/
A. Pagaltzis <pagaltzis at gmx.de> wrote on 12/29/06 at 7:21 PM:> > In other words, a paragraph, once started, eats everything > > until a blank line? > > Except blockquotes and headings.And I think that should change. I think every block-level element should be separated by a blank line. -J.G.
On 12/31/06, John Gruber <gruber at fedora.net> wrote:> A. Pagaltzis <pagaltzis at gmx.de> wrote on 12/29/06 at 7:21 PM: > > > > In other words, a paragraph, once started, eats everything > > > until a blank line? > > > > Except blockquotes and headings. > > And I think that should change. I think every block-level element > should be separated by a blank line.I think it would be parser-friendly, but not user-friendly. I find it very natural to write: * a list * without * a blank line and I see this "format" often in emails. -- Andrea Censi "Life is too important to be taken seriously" (Oscar Wilde) Web: http://www.dis.uniroma1.it/~censi