Skip to content
A MarkDown TextEditor with jQuery and Markitup! and redcarpet
JavaScript Ruby
Latest commit ddd698b Sep 26, 2011 @ZhangHanDong Merge pull request #3 from ascrazy/master
change helper module name
Failed to load latest commit information.
app/helpers/rails_markitup rename markitup helper module Sep 26, 2011
lib merge from elite28's fork and upgrade gem version Jun 30, 2011
.gitignore Delete .DS_Store and change .gitignore Jun 28, 2011
Gemfile first commit Jun 28, 2011
README.markdown merge from elite28's fork Jun 30, 2011
Rakefile first commit Jun 28, 2011


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

use: Markitup and Redcarpet


Support Env:



you need install pygments

easy_install pygments

a. In Gemfile:

gem "redcarpet"
gem "albino"
gem "nokogiri"
gem 'rails_markitup'

b. Then run :

rails g rails_markitup:install

c. In layout:

= stylesheet_link_tag :markitup
= javascript_include_tag :markitup

or you can use another highlight css:

= stylesheet_link_tag :markitup_shiny

d. In your textarea , simple_form_for exapmle:

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

e. In your application.js:


f. In your show page:

= markdown(@topic.content)

if you use shiny style

= markdown(@topic.content, 'shiny')
Something went wrong with that request. Please try again.