Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

downr

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

downr

  • 0.0.7
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Downr

Build Status Code Climate Inline docs Gem Version Dependency Status

Downr is an easy to use rails wrapper around a couple of different notable gems

So why use Downr

Good question, the best I can come up with is that if you're working on a rails project, this library provides a really easy way to add markdown parsing to it quickly with all the nice Github Flavored Markdown you know and love. It also allows you to edit all of the base options for Redcarpet through initializers, and finally gives you a nice view helper.

Installation

Add this line to your application's Gemfile:

gem 'downr'

And then execute:

$ bundle

Or install it yourself as:

$ gem install downr

after run

$ rails g downr:install

this will create an initializer in

config/initializer/downr.rb

Usage

Crack open the initializer config/initializers/downr.rb and add/change any configuration options for the markdown rendering process. These options are passed straight to Redcarpet so you can head over there to check out all of the possible options.

View Helpers

I know what those are!

render_markdown "# Hello World"

Or use directly

Downr::Markdown.render("# Hello World")

Tests

Tests are run through the wonderful RSpec so just clone the library run bundle then rake

Contributing

  1. Fork it ( http://github.com/davidrivera/downr/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

MIT

FAQs

Package last updated on 18 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc