<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Rails Blog comments on Redcloth Textile</title>
    <link>http://www.railsweek.com/blog/</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Rails Blog comments</description>
    <item>
      <title>"Redcloth Textile" by smeade</title>
      <description>&lt;p&gt;&lt;a href="leadsonrails.com"&gt;LeadsOnRails&lt;/a&gt; is currently deployed on Rails 1.1.6.  Yesterday I added Textilize/Redcloth to part of the program and found that paragraphs did not show up as expected.  I could not get blank lines between paragraphs because paragraphs were broken only by &lt;br/&gt; breaks, not &lt;p&gt;.&lt;/p&gt;


	&lt;p&gt;After a little googling I found this to be a common complaint and saw that there is a setting to specify hard breaks or not.&lt;/p&gt;


	&lt;p&gt;The simplest solution that seemed to work for me was to simply override the Rails implementation by putting this in helpers/application_helper.rb:&lt;/p&gt;


&lt;pre&gt;
  def textilize(str)
     RedCloth.new(str).to_html
  end 
&lt;/pre&gt;

	&lt;p&gt;&lt;em&gt;Is this dangerous in any way?  Any reason not to do this this way?&lt;/em&gt;&lt;/p&gt;

</description>
      <pubDate>Tue, 20 Mar 2007 13:14:00 EDT</pubDate>
      <guid>&lt;a href="/blog/articles/2007/03/20/redcloth-textile"&gt;Redcloth Textile&lt;/a&gt;</guid>
      <link>&lt;a href="/blog/articles/2007/03/20/redcloth-textile"&gt;Redcloth Textile&lt;/a&gt;</link>
    </item>
  </channel>
</rss>
