Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/dasch/disco
- Owner: dasch
- License: mit
- Created: 2010-09-07T17:54:41.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2010-09-24T19:22:49.000Z (about 14 years ago)
- Last Synced: 2023-04-11T15:32:48.221Z (over 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