Ruby Forum Redcloth > SuperRedCloth inserting <pre><code>

Posted by Daniel Nogues (Guest)
on 23.11.2007 15:14
(Received via mailing list)
I maintain a web application frozen to version Ruby 1.8.6 and RedCloth 
3.0.4

Whenever I insert a newline followed by a white space, SuperRedCloth, 
wraps the text with <pre><code> tags.

Say for example I write

###############
Hi

     This is me
###############

This piece of text gets translated to

<p>Hi</p><pre><code>This is me</code></pre>

rather than

<p>Hi</p><p>This is me</p>

This doesn't correspond to the specifications of Textile as shown on the 
link below

http://hobix.com/textile/

Is this a bug of RedCloth version 3.0.4?
Posted by Jason Garber (Guest)
on 26.11.2007 21:54
(Received via mailing list)
I'd call it a bug, but I think in RedCloth 3.0.4 it's a "feature."
That version was trying to be compatible with both Textile and
Markdown.  Indenting a block of code is a Markdown style.

RedCloth 4.0 should be better.