In 2007, I created a Drupal module that renders BBCode to HTML. Instead of a fixed set of static replacements, this module turns BBCode into a fully extensible markup language where each [bbcode] tag is a customizable macro.