Skip to content

Instantly share code, notes, and snippets.

@bjeanes
Created July 3, 2009 11:34
Show Gist options
  • Select an option

  • Save bjeanes/140067 to your computer and use it in GitHub Desktop.

Select an option

Save bjeanes/140067 to your computer and use it in GitHub Desktop.
irb(main):001:0> gem 'RedCloth', '= 4.1.1'
=> true
irb(main):002:0> require 'RedCloth'
=> true
irb(main):003:0> RedCloth::VERSION
=> 4.1.1
irb(main):004:0> RedCloth.new("@[Ruby]I::am(:some => 'ruby')@").to_html
=> "<p><code lang=\"Ruby\">I::am(:some =&gt; 'ruby')</code></p>"
irb(main):001:0> gem 'RedCloth', '= 4.2.2'
=> true
irb(main):002:0> require 'RedCloth'
=> true
irb(main):003:0> RedCloth::VERSION
=> 4.2.2
irb(main):004:0> RedCloth.new("@[Ruby]I::am(:some => 'ruby')@").to_html
=> "<p><code>[Ruby]I::am(:some =&gt; 'ruby')</code></p>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment