Last active
August 29, 2015 14:05
-
-
Save zpao/dfc9431206a5b43c4cea 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 'maruku' | |
require 'rdiscount' | |
CODE = <<-MD | |
# this is markdown now | |
``` | |
hello word | |
``` | |
MD | |
puts 'Maruku:', Maruku.new(CODE, :fenced_code_blocks => true).to_html | |
puts ' - - - - - - ' | |
puts 'RDiscount:', RDiscount.new(CODE).to_html |
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
Maruku: | |
<h1 id="this_is_markdown_now">this is markdown now</h1> | |
<pre><code>hello word</code></pre> | |
- - - - - - | |
RDiscount: | |
<h1>this is markdown now</h1> | |
<pre><code>hello word | |
</code></pre> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment