# Finding bbcode plugin

**URL:** <https://www.ruby-forum.com/t/finding-bbcode-plugin/175779>\
**Category:** Rails\
**Created:** [September 19, 2009, 2:30pm UTC](https://www.ruby-forum.com/t/finding-bbcode-plugin/175779 "2009-09-19T14:30:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fall-From-Grace](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c6cbf5/32.png) [@Fall-From-Grace](https://www.ruby-forum.com/u/Fall-From-Grace)\
**Post date:** [September 19, 2009, 2:30pm UTC](https://www.ruby-forum.com/t/finding-bbcode-plugin/175779/1 "2009-09-19T14:30:33Z")

</div>

I have tried following plugins:

> **[GitHub - jarrett/rbbcode: Converts BBCode to HTML. Gracefully handles invalid...](https://github.com/jarrett/rbbcode)**
>
> Converts BBCode to HTML. Gracefully handles invalid input. Built on Treetop. - GitHub - jarrett/rbbcode: Converts BBCode to HTML. Gracefully handles invalid input. Built on Treetop.

> **[GitHub - cpjolicoeur/bb-ruby: BBCode implementation for Ruby](https://github.com/cpjolicoeur/bb-ruby)**
>
> BBCode implementation for Ruby. Contribute to cpjolicoeur/bb-ruby development by creating an account on GitHub.

But they has one bad thing: they can’t parse codes with same codes  
inside, for example:

> [@](#):
>
> > [@](#):
> >
> > I’m juggernaut, bitch!
> 
> o rly?

Ah, rbbcode is able to parse it, but it’s very hard to add your own  
codes. Also it has very bad thing: it converts   
to self-closing tag **, and it looks awful in resulting HTML  
(all text after the tag looks bold)**

 

**bb-ruby uses .gsub to parse it, so there is no way to work with  
recursive codes =.**

 

**If you use any plugin/gem, or have written something own, please help  
me with it =)**
