I have the newest version of RedCloth installed (3.0.4). I want the following output: <h1>Header</h1> <p>Some text</p> This is what I tried but no luck: irb(main):002:0> require ''rubygems'' => true irb(main):004:0> require_gem ''RedCloth'' => true irb(main):006:0> RedCloth.new("h1. Header\r\nSome Text").to_html => "<h1>Header\nSome Text</h1>" Any ideas? Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060401/7a00d72c/attachment.html
Yes, I got bit by this a while back, it is a bug in .04... Downgrade to 3.0.3 and all should be well. On 4/1/06, Robert MannI <robmnl@gmail.com> wrote:> > I have the newest version of RedCloth installed (3.0.4). I want the > following output: > > <h1>Header</h1> > > <p>Some text</p> > > > This is what I tried but no luck: > > irb(main):002:0> require ''rubygems'' > => true > irb(main):004:0> require_gem ''RedCloth'' > => true > irb(main):006:0> RedCloth.new("h1. Header\r\nSome Text").to_html > => "<h1>Header\nSome Text</h1>" > > > Any ideas? > > > > Rob > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060401/ed8cf923/attachment.html
Thanks! On 4/1/06, Howard Roberts <hdean.roberts@gmail.com> wrote:> > Yes, I got bit by this a while back, it is a bug in .04... Downgrade to > 3.0.3 and all should be well. > > On 4/1/06, Robert MannI < robmnl@gmail.com> wrote: > > > I have the newest version of RedCloth installed ( 3.0.4). I want the > following output: > > <h1>Header</h1> > > <p>Some text</p> > > > This is what I tried but no luck: > > irb(main):002:0> require ''rubygems'' > => true > irb(main):004:0> require_gem ''RedCloth'' > => true > irb(main):006:0> RedCloth.new("h1. Header\r\nSome Text").to_html > => "<h1>Header\nSome Text</h1>" > > > Any ideas? > > > > Rob > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060401/410acf84/attachment-0001.html