helios-ag / FMBbCodeBundle

:capital_abcd: BBCode bundle for Symfony projects
Other
57 stars 35 forks source link

Bug on translation BBCode to Xhtml #11

Closed remontees closed 12 years ago

remontees commented 12 years ago

Hello,

I've tried to parse this BBCode :

[h1]Titototo[/h1]
[h2]Tutu[/h2]
[center][i]Youpi[/i]
[list]
[*]Tralala
[*]Liluolo
[list]
[*]Trululu[/list][/list][/center]

And the XHTML response :

 <p></p><h1>Titototo</h1><br>
 <h2>Tutu</h2><br>
 <div class="align-center"><em>Youpi</em><br>
 <ul class="decoda-list"></ul></div><p></p>

The list were not parsed.

helios-ag commented 12 years ago

Hello, thanks for opening issue on github, but bbcode [*] as i know not supported by php-decoda library, as mentioned at https://github.com/milesj/php-decoda/blob/master/readme.md , [list], [olist], [li] are supported. In your case, i will suggest to use [li] instead, or you can open issue (feature request) in php-decoda issue tracker. Sorry for delay.

remontees commented 12 years ago

But could you respect the syntax of the BBCode, using [*] tags and [list=1] or [list=a] for BBCode lists ???

helios-ag commented 12 years ago

This bundle is a wrapper for php-decoda library. It provide abilities from php-decoda.