Created
April 18, 2009 16:36
-
-
Save henrik/97682 to your computer and use it in GitHub Desktop.
This file contains 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
# 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