Constant

SimpleMarkup::SIMPLE_LIST_RE

List entries look like:

*       text
1.      text
[label] text
label:: text

Flag it as a list entry, and work out the indent for subsequent lines

/^(
  (  \*          (?# bullet)
    |-           (?# bullet)
    |\d+\.       (?# numbered )
    |[A-Za-z]\.  (?# alphabetically numbered )
  )
  \s+
)\S/x
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.