0.01
Low commit activity in last 3 years
No release in over a year
A gemified verison of the chjj/marked: "A full-featured markdown parser and compiler, written in javascript."
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

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