https://github.com/dasch/disco
Adds a simple Markdown helper to Rails. Uses RDiscount.
https://github.com/dasch/disco
Last synced: 2 months ago
JSON representation
Adds a simple Markdown helper to Rails. Uses RDiscount.
- Host: GitHub
- URL: https://github.com/dasch/disco
- Owner: dasch
- License: mit
- Created: 2010-09-07T17:54:41.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2010-09-24T19:22:49.000Z (over 15 years ago)
- Last Synced: 2025-03-23T14:37:54.746Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.mkd
- License: MIT-LICENSE
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