Socket
Book a DemoInstallSign in
Socket

markitup_rails3

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markitup_rails3

0.2.4
bundlerRubygems
Version published
Maintainers
1
Created
Source

markitup_rails3

MonkMartinez version

  • built in showdown.js support for markdown
  • bootstrap-ish style changes
  • published to rubygems due to appfog not bundle installing from git

========================

This is a gem that contains the vendor assets for markitup.

Support

Should support rails 3.0 and higher.

Supported markup languages:

  • html
  • textile
  • markdown
  • wiki
  • texty
  • css

Usage

Installing the Gem

Require markitup-rails in your Gemfile.

require 'markitup-rails'

Install the gem via bundle command.

Using it in your application

Add to application.css

*= require markitup
*= require markitup-[markup lang]

Example

*= require markitup
*= require markitup-textile

And in application.js

//= require markitup
//= require markitup-[markup lang]

Example

//= require markitup
//= require markitup-textile

Using markitup

Include in either application.js or another file that will be included in the pipelin:

// To target all text areas
$(document).ready(function() {
  $("textarea").markItUp(mySettings);
});

//----- OR

// To target a specific ID
$(document).ready(function() {
  $("textarea#my_id").markItUp(mySettings);
});

//----- OR

// To target a specific class
$(document).ready(function() {
  $("textarea.markitup").markItUp(mySettings);
});

See the markitup documentation for more info.

Based on the blueprint-rails gem

FAQs

Package last updated on 22 Jun 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.