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.
Robert MannI (Guest)
on 2006-04-01 21: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
Howard R. (Guest)
on 2006-04-01 23: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.
Robert MannI (Guest)
on 2006-04-02 00:27
(Received via mailing list)
Thanks!
This topic is locked and can not be replied to.