Sha256: d01a9ea426bc6dcf00d8fb2e8edd0291737f144c3295ea642322314490ad7fc3

Contents?: true

Size: 917 Bytes

Versions: 1

Compression:

Stored size: 917 Bytes

Contents

A MarkDown TextEditor with jQuery and Markitup! and redcarpet for Rails 3
=========================================================================

__use: [Markitup](http://markitup.jaysalvat.com/ "Markitup")__

__[Demo](http://markitup.jaysalvat.com/downloads/demo.php?id=markupsets/markdown)__

Support Env:
------------
Rails3.0.8+/Ruby1.8.7+

Usage:
------

1.  **In you Gemfile:**

   >gem "redcarpet"

   >gem "albino"

   >gem "nokogiri"

   >gem 'rails_markitup'

2. run :

  > rails g rails_markitup:install

3. in layout:

  > = stylesheet_link_tag :markitup

  > = javascript_include_tag :markitup

4. in your textarea , simple\_form\_for exapmle:

    > = form.input :content, :as => :text, :input_html => {:id => 'markdown'} 

5. in your application.js:

>$(document).ready(function(){
>
>    $('#markdown').markItUp(myMarkdownSettings);
>
>});

5. in your show page:

    > = markdown(@topic.content)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_markitup-0.0.1 README.markdown