Forum: Ruby on Rails Textile headaches

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9618e8fca8d72bf01814276c53c2568c?d=identicon&s=25 Robert MannI (Guest)
on 2006-04-01 19:01
(Received via mailing list)
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
39bd2cc2a8b8ead1299b6f8121b127f7?d=identicon&s=25 Howard Roberts (Guest)
on 2006-04-01 21:10
(Received via mailing list)
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.
9618e8fca8d72bf01814276c53c2568c?d=identicon&s=25 Robert MannI (Guest)
on 2006-04-01 22:27
(Received via mailing list)
Thanks!
This topic is locked and can not be replied to.