Bb2md simply converts BBcode to Markdown.
Add this line to your application's Gemfile:
gem 'bb2md'
And then execute:
$ bundle
Or install it yourself as:
$ gem install bb2md
Rendering is done by Bb2md
class. Initializer takes options as hash
as argument.
converter = Bb2md::Converter.new(options = {})
Available options are:
:todo - maybe it will be something here ;)
To convert content use Bb2md::Converter#convert
method.
converter.convert("Some [b]strong[/b] words")
# => "Some **strong** words"
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request