BBCode implementation for Ruby