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?
on 2007-11-23 15:14
on 2007-11-26 21:54
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.
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.