Pandoc’s architecture is composed of readers translating input formats into an abstract syntax tree (AST) which is subsequently rendered into various output formats.
Because BBCode is rather under specified, I only implemented the subset
I needed for my inputs. Notable omissions include the
[size] tags. The non standard headings (
[h6]) are recognized. The optional pandoc title block
pandoc -f bbcode -t markdown article.bb
Anyway, maybe it is useful for somebody out there. The code is located in the bbcode-reader branch on Github.