Created
May 5, 2013 08:53
-
-
Save subosito/5520195 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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