cpjolicoeur/bb-ruby — Issue #4: [list][*]list[/list] issue
Author: Kulgar
Created: 2012-02-22 17:16:46+00:00
State: open

Hi,

I've tried to write something like this:

[list]
[*] List item 1
[*] List item 2
[/list]

And this doesn't render the proper html code using BBRuby. [list] [/list] aren't replaced by [ul][/ul] because the regex breaks because of the "list" word in items.

In the regex you have:

/\[list(:.*)?\]((?:(?!list).)*)\[\/list(:.)?\1?\]/mi

The

(?!list)

Part is needed, I'm aware of that. If you replace it with:

(?!\[\/list\])

Everything should work fine, shouldn't it?