⚡️Blazing fast port of the BBCode parser and transformer bbob in dart.
bbob_parser
: parses bbcode into a ast.
See code in exmaple folder.
bbob_dart
is written in dart, which has a sound type system. And with the help of dart,
bbob_dart
is strongly typed.
You have two ways to render:
-
Similar to https://github.com/JiLiZART/bbob/blob/master/packages/bbob-html/src/index.js, how
bbob
renders ast into html. -
Similar to https://github.com/dart-lang/markdown/blob/master/lib/src/html_renderer.dart,
bbob_dart
has implemented an ast which allows you to walk through the tree using visitor pattern.
Official support in bbob_dart
for a html renderer might not happen in the near future. Feel free to send a pull request
if you have a well-tested implementation.
See discussions here. Performance is expected to be on par with original bbob
.
Since this is a port of bbob, feature requests and bug reports should preferably be reported to original bbob repo if it's not directly related to this dart implementation.