Sha256: 7710547af7d8d3a59b21018257b7eb2ec8e46f1eec92716eea6bee8d6042adae

Contents?: true

Size: 257 Bytes

Versions: 4

Compression:

Stored size: 257 Bytes

Contents

class Markitup::ParsersController < ApplicationController
  
  def markdown
    @markitup =  BlueCloth.new(params[:data]).to_html
    render :layout => false
  end
  
  def default
    @content = params[:data].html_safe
    render :layout => false
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails3_markitup-0.0.4 app/controllers/markitup/parsers_controller.rb
rails3_markitup-0.0.3 app/controllers/markitup/parsers_controller.rb
rails3_markitup-0.0.2 app/controllers/markitup/parsers_controller.rb
rails3_markitup-0.0.1 app/controllers/markitup/parsers_controller.rb