Note:
This gem is no longer needed, or actively maintained. Simply use the following with forem
:
gem "kramdown"
Provides Kramdown markup (with syntax highlighting by CodeRay) for Forem posts.
This gem is based on forem-redcarpet.
This gem requires Rails 3.1+ and Forem 1.0.0.beta1.
This gem has been tested against the following Ruby versions:
- 1.8.7
- 1.9.2
- 1.9.3
- JRuby
- Rubinius
Add this line to your application's Gemfile:
gem "forem-kramdown"
And then execute:
$ bundle
Or install it yourself as:
$ gem install forem-kramdown
Specify this gem as a dependency of an application that also contains Forem:
gem "forem", git: "git://github.com/radar/forem"
gem "forem-kramdown"
The code will do the rest!
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a Pull Request
sugar-rails
- Freely distributable and licensed under the MIT license.
- Copyright (c) 2012 Phil Cohen (github@phlippers.net)
- http://phlippers.net/