bryonjacob / wikimodel

Automatically exported from code.google.com/p/wikimodel
0 stars 0 forks source link

CreoleParser - The grammar for lists is wrong #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The grammar for lists is wrong.  Wiki Creole specifies lists like:
{{{
* item
** nested item
* next item
}}}
With leading whitespace being ignored.

It looks like your current Creole grammar requires at least one initial
blank and nesting is done like this:
{{{
 * item
  * nested item
 * next item
}}}

See http://wikicreole.org/wiki/Creole1.0

Original issue reported on code.google.com by mikhail....@gmail.com on 7 Jan 2008 at 12:22

GoogleCodeExporter commented 8 years ago
Now the parser recognizes "**" sequnce at the beginning of lines as a bold 
symbols.
To interpreted it as a list it should contains at least one space after it.

The following sequences are recognized as list items:
{{{
* item one
*item two
  * item three - at the same level as the first two!
** item four - the second level
  ** item five - the second level 
*** the third level
 *** the third level again
}}}

But the following sequences are handled as bolds:
{{{
**bold item => <p><strong>bold item</strong></p>
***bold item => <p><strong>*bold item</strong></p>
}}}

Original comment by mikhail....@gmail.com on 8 Jan 2008 at 3:59