Marked::Rails
Marked is an awesome, fast Markdown parser and compiler. This is marked - wrapped in a gem - to make use of rubygems as a package manager. Marked is also available through Node Package Manager, but if you're working in Rails it's nice to have in gem form for simple integration into your rails apps.
Installation
Add this line to your application's Gemfile:
gem 'marked-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install marked-rails
Usage (With Asset Pipeline)
//= require marked
Usage (Without Asset Pipeline)
This gem adds a generator, marked:install
. Running the generator will copy Marked to the
public/javascripts
directory.
To invoke the generator, run:
rails generate marked:install
Versioning Conventions
The least significant digits are gem-specific. Everything before those digits are marked versions. For example: marked-rails 0.2.8.0 tracks marked 0.2.8 - if we make a mistake in the gem, without having to touch the library - we'd release 0.2.8.1.
Contributing
Feel free to open an issue if you find something that could be improved. A couple notes:
- If it's an issue pertaining to the marked javascript, please report it to the marked project.
- If the marked scripts are outdated (i.e. maybe a new version of marked was released yesterday), feel free to open an issue and prod us to get that thing updated.
Acknowledgements
- This README is heavily inspired by the one for jquery-rails