Skip to content

Instantly share code, notes, and snippets.

@zpao
Last active August 29, 2015 14:05
Show Gist options
  • Save zpao/dfc9431206a5b43c4cea to your computer and use it in GitHub Desktop.
Save zpao/dfc9431206a5b43c4cea to your computer and use it in GitHub Desktop.
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
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