Displaying 1 result from an estimated 1 matches for "text_to_parse".
2008 May 13
4
hard_breaks issues
...you confirm which is the real reference for the 
Textile "language", and what spec Redcloth follow ?
The latest stable release does everything well for me except "\n" => 
"<br />", it leaves "\n" as is.
I use a very basic code : @blah = RedCloth.new(text_to_parse).to_html
I tried to add the array [:hard_breaks] as a second parameter, but not 
only it does not parse \n "well" (see below), but other features 
disappear, except bold, underline, links and some other transformations. 
Maybe it''s the standard behaviour, but in that case, I thin...