This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Mon May 26 11:59:00 -0700 2008 | [bernardo] |
| |
MIT-LICENSE | Mon May 26 12:06:10 -0700 2008 | [fesplugas] |
| |
README | Tue Jun 17 05:47:11 -0700 2008 | [fesplugas] |
| |
Rakefile | Tue Jun 17 05:44:54 -0700 2008 | [fesplugas] |
| |
init.rb | Mon May 26 12:24:25 -0700 2008 | [fesplugas] |
| |
lib/ | Tue Sep 09 00:46:24 -0700 2008 | [fesplugas] |
| |
test/ | Mon May 26 12:24:59 -0700 2008 | [fesplugas] |
README
== MarkdownFu
"Markdown is a text-to-HTML conversion tool for web writers. Markdown allows
you to write using an easy-to-read, easy-to-write plain text format, then
convert it to structurally valid XHTML (or HTML)."
Markdown was created by {John Gruber}[http://daringfireball.net/projects/markdown/]
MarkdownFu is a Rails (ActiveRecord) plugin which will convert attributes from
Markdown into html and store the result in the <tt>[attribute_name]_html</tt> attribute.
You will need to define such attribute in your migrations for each markdown
enabled attribute in your models.
You may define multiple markdown attributes per model and they will be inherited
to subclasses using Single Table Inheritance.
== Example
class Page < ActiveRecord::Base
# stores the html version of content into content_html
markdown :content
# stores html version of markdown_body into converted_body
markdown :markdown_body, :converted_body
end
== Credits
- Originally based on textilizefu[http://github.com/adelcambre/textilizefu/] by adelcambre.
- Francesc Esplugas Marti - Initial implementation
- Bernardo de Padua - Rewritten to support multiple markdown attributes per
model and added tests.
Copyright (c) 2008 Francesc Esplugas Marti, Bernardo de Padua released under the MIT license




