Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dasch/disco

Adds a simple Markdown helper to Rails. Uses RDiscount.
https://github.com/dasch/disco

Last synced: 24 days ago
JSON representation

Adds a simple Markdown helper to Rails. Uses RDiscount.

Awesome Lists containing this project

README

        

Disco
=====

A simple Rails plugin that adds a `markdown` helper to your views.

Disco uses [RDiscount](http://github.com/rtomayko/rdiscount) internally to
parse and process the Markdown.

For information about the Markdown syntax, visit
[the official page](http://daringfireball.net/projects/markdown/).

Example
=======

Process the Markdown string using the RDiscount parser:

markdown("Hello *John*!") #=> "

Hello John!

\n"

If `:allow_html => true` is supplied, HTML code will not be
escaped.

The returned string is `html_safe` and can be used directly
in your views.

Copyright (c) 2010 Daniel Schierbeck, released under the MIT license