Closed PierreAdam closed 9 years ago
look at list example in decoda lib https://github.com/milesj/Decoda/blob/master/examples/list.php Decoda doesn't support star bbcode [*], instead use [li][/li]
Hum ok thanks
According https://github.com/milesj/decoda/commit/729dc63b63ca2fa949ec49645b670806eebae542 the support of [] was added 7 months ago But I can't display my items with [], it works only with [li][/li]
With the decoda version 6.4.3 all is right
Doesn't work again (using [*]) FMBbCodeBundle: 6.2.1 decoda: 6.6.0
Just rechecked, works fine with 6.6.0
{{'[list][*] Element 1[/*][*] Element 2 [/*][/list]'|bbcode_filter('my_default_filter')}}
I mean format mentioned by PierreAdam (without ending tags [/*])
if it will be helpful, I wrote regexp which replaces all [*] occurrences by [li][/li]:
preg_replace(
'#\[\*\](.*?)(?:\[/\*\])?\s*(?=\[\*\]|\[/list\])#sim',
'[li]$1[/li]'
$content
);
That feature was added since Decoda 6.2.0 and you can look at this test case who it works.
I confirm this bug. This behavior due to uppercase'd check List filter definition in decoda https://github.com/milesj/decoda/blob/master/src/Decoda/Decoda.php#L1295
Fixed in #103
Hello,
I tried to use that with the filter
list