Constant

BlueCloth::ListItemRegexp

Pattern for transforming list items

%r{
      (\n)?                                                 # leading line = $1
      (^[ ]*)                                                       # leading whitespace = $2
      (#{ListMarkerAny}) [ ]+                       # list marker = $3
      ((?m:.+?)                                             # list item text   = $4
      (\n{1,2}))
      (?= \n* (\z | \2 (#{ListMarkerAny}) [ ]+))
}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.