# RedCloth and Rails

**URL:** <https://www.ruby-forum.com/t/redcloth-and-rails/56075>\
**Category:** Rails\
**Created:** [March 28, 2006, 12:18am UTC](https://www.ruby-forum.com/t/redcloth-and-rails/56075 "2006-03-28T00:18:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Berlin\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@Berlin\_B](https://www.ruby-forum.com/u/Berlin_B)\
**Post date:** [March 28, 2006, 12:18am UTC](https://www.ruby-forum.com/t/redcloth-and-rails/56075/1 "2006-03-28T00:18:01Z")

</div>

Has anyone had any experience with RedCloth for rails. It is a textile  
system. I haven’t spot checked the code and was wondering if it caused  
any lockups or other issues.

[http://whytheluckystiff.net/ruby/redcloth/](http://whytheluckystiff.net/ruby/redcloth/)

–  
Berlin B.  
(ramaza3 on freenode)  
[http://www.newspiritcompany.com](http://www.newspiritcompany.com)  
also checkout alpha version of botverse:  
[http://www.newspiritcompany.com:8086/universe\_home](http://www.newspiritcompany.com:8086/universe_home)

---

<div class="post-metadata">

**Author:** ![Berlin\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@Berlin\_B](https://www.ruby-forum.com/u/Berlin_B)\
**Post date:** [March 28, 2006, 12:25am UTC](https://www.ruby-forum.com/t/redcloth-and-rails/56075/2 "2006-03-28T00:25:15Z")

</div>

No problems for me.

Joe

---

<div class="post-metadata">

**Author:** ![Berlin\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@Berlin\_B](https://www.ruby-forum.com/u/Berlin_B)\
**Post date:** [March 28, 2006, 1:11am UTC](https://www.ruby-forum.com/t/redcloth-and-rails/56075/3 "2006-03-28T01:11:28Z")

</div>

Berlin B. wrote:

> Has anyone had any experience with RedCloth for rails. It is a textile  
> system. I haven’t spot checked the code and was wondering if it caused  
> any lockups or other issues.
> 
> [http://whytheluckystiff.net/ruby/redcloth/](http://whytheluckystiff.net/ruby/redcloth/)

RedCloth is excellent. I doubt you will have any difficulties with it.  
It is very mature as far as Ruby libraries go.

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![Berlin\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@Berlin\_B](https://www.ruby-forum.com/u/Berlin_B)\
**Post date:** [March 28, 2006, 2:39am UTC](https://www.ruby-forum.com/t/redcloth-and-rails/56075/4 "2006-03-28T02:39:43Z")

</div>

I take it back - I do have some problems with RedCloth. I’ve been  
importing a lot of test and hyphens and asterisks trip up the text. For  
example:

ROR-Ruby on Rails-1.1 is near

blah blah blah

* * *

blah blah blah

The first results in a strike-through; the second often in an open bold  
tag. But, the text I’ve been importing is kind of wacky, and these are  
pretty trivial which can be cleaned up manually.

Joe

---

<div class="post-metadata">

**Author:** ![Berlin\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@Berlin\_B](https://www.ruby-forum.com/u/Berlin_B)\
**Post date:** [March 28, 2006, 4:09am UTC](https://www.ruby-forum.com/t/redcloth-and-rails/56075/5 "2006-03-28T04:09:11Z")

</div>

There is one issue with Redcloth to be aware of before you start (from  
the wiki):

"If you you are using Rails v1.0, make sure you are using RedCloth 3.0.3  
instead of 3.0.4. You can then use textilize() correctly. See below for  
what happens if you don?t do this

You can do this by running

gem install redcloth --version “3.0.3”  
gem uninstall redcloth --version “3.0.4”

"  
basically hard\_breaks don’t quite work properly if you don’t follow this  
advice.

otherwise, splendid!

dorian

---

<div class="post-metadata">

**Author:** ![Berlin\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@Berlin\_B](https://www.ruby-forum.com/u/Berlin_B)\
**Post date:** [March 28, 2006, 4:01am UTC](https://www.ruby-forum.com/t/redcloth-and-rails/56075/6 "2006-03-28T04:01:28Z")

</div>

Joe wrote:

> The first results in a strike-through; the second often in an open bold  
> tag. But, the text I’ve been importing is kind of wacky, and these are  
> pretty trivial which can be cleaned up manually.

\_why is a really nice guy. I’m sure he wouldn’t mind a few failing test  
cases that reproduce the problem you are experiencing. 🙂

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)
