Skip to content

Instantly share code, notes, and snippets.

@subosito
Created May 5, 2013 08:53
Show Gist options
  • Save subosito/5520195 to your computer and use it in GitHub Desktop.
Save subosito/5520195 to your computer and use it in GitHub Desktop.
require 'redcarpet'
desired_result = "<p>This is should be <strong>strong</strong> and <em>italics</em>!</p>\n"
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML)
result = markdown.render("This is should be **strong** and *italics*!")
puts "Desired Result : #{desired_result}"
puts "Actual Result : #{result}"
puts "Is redcarpet on this machine works? #{(desired_result == result)}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment