I used RedCloth for the first time for my Quiz entry, and I came
across a few unexpected features...

1) something as simple as

text = <<EOT
Double the value of 'a'.

  a*=2

also double 'b'

  b*=2
EOT
puts RedCloth.new(text).to_html()

gets rendered with the stars in the code gone and the text turned bold
between them.

2) I found a pathological case. At first I thought it was due to the
literal text "<code>" inside a code block, but I reduced it to:

text = <<EOT
comment

      line = "\n"+misplaced
EOT
puts RedCloth.new(text).to_html()

It should return something like:

<p>comment</p>
	<pre><code>line = "\n"+misplaced</code></pre>

but it produces

<p>comment
&#8220;+misplaced</p>


	<pre><code>line = "</code></pre>


 Can I fix these by setting rules in the to_html call, or are these bugs?
-Adam