Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

This plugin will convert attributes from Markdown into html.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 init.rb
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
Something went wrong with that request. Please try again.