Skip to content

Instantly share code, notes, and snippets.

@henrik
Created April 18, 2009 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save henrik/97682 to your computer and use it in GitHub Desktop.
Save henrik/97682 to your computer and use it in GitHub Desktop.
# Illustrates an RDiscount issue.
#
# Seen in the wild in Jekyll (http://github.com/mojombo/jekyll) blog posts
# where <div><pre> is used for syntax highlighting.
require 'rubygems'
require 'rdiscount'
require 'maruku'
md = DATA.read
puts RDiscount.new(md).to_html
puts
puts "-"*80
puts
puts Maruku.new(md).to_html
__END__
Markdown works fine *here*.
*And* here.
<div><pre>
</pre></div>
Markdown here is *not* parsed by RDiscount.
Nor in *this* paragraph, and there are no paragraph breaks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment