textilize with --- (3 dashes) removes text

Hi,

using --- (3 dashes) at the end of a string that is textilized, results in a single hr tag without any text. This seems weird to me. Am I overlooking something?

av = ActionView::Base.new av.textilize("sometext ---")

=> "<hr />"

Cheers, Jan

What vesion of RedCloth do you have installed?

I get the following...

x = RedCloth.new( 'foobar ---' )

=> "foobar ---"

x.to_html

=> "<p>foobar <del>-</del></p>"

Hi,

thanks for your reply.

I have RedCloth 4.0.4 installed. However, it was using an old version that is for some reason in the ruby 1.8 folder. /usr/lib/ruby/1.8/redcloth.rb that includes 3.0.99.0.svn.20060519!

I removed the file redcloth.rb and now it works. But removing the file does not seem a very clean solution. If you have any suggestion about this, that would be great.

Thanks and Cheers, Jan