Why is RedCloth 3.0.4 so borked?

Hello,

I do really like Textile - many people do. This is why I do not
understand why the latest version of RedCloth, 3.0.4, does not work as
expected - while the 3.0.3 version does. Everywhere you find forum posts
or blog posts recommending 3.0.3. So why is there a 3.0.4 version at
all? Since more than a year? Do the original authors still care? What is
the reason for version 3.0.4 acting so strange? Will there be a version
3.0.5 correcting these issues?

Maybe I should adress the authors directly, but I just thought I’d give
it a shot on the forums. So I’m looking forward to your replies.

On 1/17/07, Code Xy [email protected] wrote:

Maybe I should adress the authors directly, but I just thought I’d give
it a shot on the forums. So I’m looking forward to your replies.

You should repost this to ruby-talk, as it has a better chance of why
seeing it there.

  • Rob

Hello,

I do really like Textile - many people do. This is why I do not
understand why the latest version of RedCloth, 3.0.4, does not work as
expected - while the 3.0.3 version does. Everywhere you find forum posts
or blog posts recommending 3.0.3. So why is there a 3.0.4 version at
all? Since more than a year? Do the original authors still care? What is
the reason for version 3.0.4 acting so strange? Will there be a version
3.0.5 correcting these issues?

I’ve also already contacted why (the author), but apparently he
doesn’t reply - and presumably care - anymore. What is especially
sad is that in the SVN there is sitting a neat start of a good
refactoring of RedCloth, something that could be a 3.0.5 soon…
http://rubyforge.org/projects/redcloth/

Maybe I should adress the authors directly, but I just thought I’d give
it a shot on the forums. So I’m looking forward to your replies.

It would be great if it got improved. Actually I thought about doing
it myself, but for the coming weeks I’m quite busy finishing my FOSS
rails app before Fosdem 2007 in Brussels (end of feb.).

Would be great if we got a community together to fix and release the
code from the SVN.

Wybo

::student:

::Free Software and Open Source Developer:

  • http://www.LogiLogi.org, innovative system for cumulative, shared
    commenting,
    publication and idea sharing: Web as it
    should be…
  • ComLinToo, a computational linguistics toolset written in Perl
  • Lake (LogiLogi.org Make), a make-replacement using makefiles in pure
    C++

::Being:

It’s progressing :

http://redhanded.hobix.com/inspect/superredclothAsAChild.html

A.

Man, I thought it was just me. I filed a couple of bugs against it and
didn’t see any response. I’ll see if I can downgrade to 3.0.3

Does anyone know if the tip revision in svn is in good shape?

My understanding is that it isn’t borked, they just changed the
default handling to something that most people don’t expect.

I can’t remember where I read this but I know I did see something and
I believe there is a config option to get 3.0.3 behavior from 3.0.4,
along with whatever else is new/changed/fixed in 3.0.4.

I’d be interested to hear whatever this is if someone knows.

Hunter

Sorry for the stream-of-thought here. I changed my partial from

<%= textilize @agendaitem.notes %>

to

<%= RedCloth.new(@agendaitem.notes).to_html %>

and it now behaves as expected.

How do I dig into this to find out what is happening? Find the
implementation for textilize in my rails version I guess.

I posted something to the project authors and to the mail list for
redcloth. I’ll update this if I find out anything.

Joe

I have some fairly basic usages that break it (according to the docs).
After some digging it appears that the problem may be between RedCloth
and Rails

For example, from the rails console:

@note = @a.notes
=> “h1. this is a heading\n\nand this is not going to be”

RedCloth.new(@note).to_html
=> “

this is a heading

\n\n\n\t

and this is not going to
be

The tab character is unexpected, but not strictly speaking a bug
because it doesn’t change the rendering (maybe it is on purpose for
readability in the generated HTML source even)

When I look at the generated HTML source from my rails app I see
something different:

this is a heading
and this is not going to be

Hmmm, does rails (edge currently) ship a different version of RedCloth
somehow? Or not use RedCloth for “textilize” anymore?

On 1/18/07, Joe at CodeGear [email protected] wrote:

How do I dig into this to find out what is happening? Find the
implementation for textilize in my rails version I guess.

You can easily dig into the source:
http://dev.rubyonrails.org/browser/trunk/actionpack/lib/action_view/helpers/text_helper.rb#L108

It’s also easy enough to overwrite this in your application_helper
too, or better yet – a plugin.


Rick O.
http://weblog.techno-weenie.net
http://mephistoblog.com