Forum: Ruby on Rails textilize with --- (3 dashes) removes text

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
jan (Guest)
on 2008-10-06 21:10
(Received via mailing list)

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 =
>> av.textilize("sometext ---")
=> "<hr />"

Robby R. (Guest)
on 2008-10-07 03:31
(Received via mailing list)
What vesion of RedCloth do you have installed?

I get the following...

>> x = 'foobar ---' )
=> "foobar ---"
>> x.to_html
=> "<p>foobar <del>-</del></p>"

On Mon, Oct 6, 2008 at 10:02 AM, jan <removed_email_address@domain.invalid> 
> Cheers,
> Jan
> >

Robby R.
Chief Evangelist, Partner

design // development // hosting
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]
jan (Guest)
on 2008-10-07 22:21
(Received via mailing list)

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!

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,
This topic is locked and can not be replied to.