similar to: RedCloth Hard Breaks

Displaying 20 results from an estimated 1000 matches similar to: "RedCloth Hard Breaks"

2006 Jun 14
7
CR issue
Hi, I am using RedCloth (3.0.4). First using online text2html (http://www.textism.com/tools/textile/) , "123 456" returns <p>123<br />456</p> But by code: <code> require ''RedCloth'' puts RedCloth.new("123\n456").to_html </code> I got: <p>123 456</p> CR is not taken in consideration. Is there any parameter I am
2006 Mar 25
2
Textilize problems with line breaks
I''m having a problem formatting some text. I have a textarea that I input my text into, which will then be put into an e-mail and sent out. The problem I am having is when there is a single line break. Multiple line breaks work fine (hitting enter twice), but single line breaks don''t seem to work properly. Take the following input: Line1. Line2. Line3. Line4. Using
2006 Apr 25
4
redcloth poblems
Hi, I''m having some problems with redcloth(3.0.4 gem) and textilize. I have a string: "h2. hello _what''s up?_" which is being textilized as: <h2>hello<br /> <em>what&#8217;s up?</em></h2> so no paragraph and h2 wrapped all the way. the input is coming from firefox 1.5.2 on a mac Anybody got any idea what the problem might be? --
2005 Dec 21
8
textilize - redcloth
Hi, I''m using textilize with redcloth 3.0.4. Everything works best except that paragraphs are not translated as an HTML paragraph When I write something like: *first paragraph* second paragraph the output is without paragraph: *first paragraph* second paragraph Any help??? Thanks Jörg
2007 Jan 16
1
<BR> and <P> in RedCloth v. Textism
Hi, I''m using RedCloth right now for some simple markup in a Rails project. It''s simple and easy - thanks for a great tool! I have a question about an apparent discrepancy between RedCloth and Textile, relating to newline characters. I''ve played with the "hard_breaks" feature and that seems to generate it''s own problems.. If I go onto the Textile
2008 May 13
4
hard_breaks issues
Hello, I''m new to this list, so first of all, many thanks to RedCloth''s developers, it really helps me in many ruby apps :-) I post here because I''d like to have a clear view on "hard_breaks" related issues. I saw old references on the web and on the archives on this ML, I''d like a fresh view ! It seems that RedCloth 3.0.4 does not handle
2006 Mar 10
2
textilize != RedCloth.new ?
For me, textilize(stuff) produces nasty stuff - <br>''s instead of enclosing <p>''s and some closing <h*>''s are missing. RedCloth.new(stuff) works fine though. Isn''t textilize supposed to produce the same output? Or do I need to tweak something? Joe -- Posted via http://www.ruby-forum.com/.
2008 Mar 15
8
Now what?
> $ rake test > /usr/local/bin/ruby -Ilib:test "/usr/local/lib/ruby/gems/1.8/gems/ > rake-0.7.3/lib/rake/rake_test_loader.rb" "test/test_formatters.rb" > "test/test_parser.rb" > Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/ > rake_test_loader > Started >
2006 Feb 27
12
RedCloth
Is this the prefered method to implement RedCloth in your views. I''m trying to display user input that will sometimes have code references in it. This strips out all tags. I would like for the tags to be displayed but not read as html. Thanks in advance! <%= RedCloth.new(strip_tags(comment.comment),[:filter_html]).to_html %> charlie bowman recentrambles.com -- Posted via
2006 May 10
2
hard_breaks
Dear Dressers of RedCloth, I have a question: text = "Foo\nBar\n\nBaz" RedCloth.new(text, [ :hard_breaks ]).to_html # => "<p>Foo<br />Bar<br />\nBaz</p>" Shouldn''t that really be "<p>Foo<br />Bar</p><p>Baz</p>"? So long, -- Christoffer Sawicki
2006 Mar 24
9
Escaping characters
Hi, I am writing some help about post formatting. I am using redcloth to format the text, and in a FAQ, also formatted with redcloth, I explain what to type to what to obtain. So, how could I escape ''*'', ''#'' & Co, to have an output like <redcloth> Type *word* to obtain <strong>word</strong> </redcloth> I tried "Type
2007 Jul 16
6
Advice regarding extending RedCloth
Hello, I am in a bit of a bind. I need to reliably parse mediawiki markup to html, and the only parser that I can find (mediacloth) has a lot to be desired, so I would like to extend something that works and parse mediawiki markup. My question to this list is should I start working on RedCloth or SuperRedCloth or is there a difference as far as extending them? Also does anyone know of a write up
2007 Jan 28
1
^SUPER^ _RED_ ~CLOTH~ 1.153
New gems (source and win32): gem install superredcloth --source http://code.whytheluckystiff.net Use it like: SuperRedCloth.new("_huh?_").to_html Okay, getting close! A lot more tests are passing. There are still about 50 tests failing. Most of these are due to ol/ul list problems. Here''s what''s still broken: * Options (:hard_breaks, :filter_html, etc.) *
2007 Jan 23
7
RedCloth and SuperRedCloth
Good day to the parliament of RedCloth followers gathered here. Grave matters at hand!! I''m personally quite unhappy with the state of RedCloth and am reluctant to release the code in the repository. I can''t say if the code works with any confidence because I can''t generate the (Poignant) Guide with the current RedCloth. I know some things are fixed, but I''m
2006 Jun 05
2
Bug in RedCloth or in my head?
Instead of emm-dashes I get struck-out text surrounded with single hyphens. RedCloth 3.0.4: >> d = RedCloth.new "-- hyphens to the left of me, hyphens to the right, all should be emm dashes --" => "-- hyphens to the left of me, hyphens to the right, all should be emm dashes --" >> d.to_html => "<p><del>- hyphens to the left of me, hyphens
2010 Apr 13
1
BBCode Fork of RedCloth
how do you install this? especially on rails 3? putting gem "redcloth", :git => "git://github.com/ROFISH/redcloth.git" doesn''t work. and do nested tags like [quote][quote][/quote][/quote] work? -- Posted via http://www.ruby-forum.com/.
2006 Mar 29
6
Comments for a blog
Hello, I''m making a blog and I need some function that convert the text writed for a user in a textarea into a formated text. I think to use h, but it forget paragraph breaks and I like allow some tags. By Daniel
2006 Mar 07
6
Anybody use Red|Blue Cloth?
Does anybody use and prefer Redcloth (or bluecloth, which appears to be alpha)? Does it affect performance much? Is there a way to get it to automatically process templates without having to call textilize? Thanks, Joe -- Posted via http://www.ruby-forum.com/.
2006 Mar 27
5
RedCloth and Rails
Has anyone had any experience with RedCloth for rails. It is a textile system. I haven''t spot checked the code and was wondering if it caused any lockups or other issues. http://whytheluckystiff.net/ruby/redcloth/ -- Berlin Brown (ramaza3 on freenode) http://www.newspiritcompany.com also checkout alpha version of botverse: http://www.newspiritcompany.com:8086/universe_home
2006 Sep 18
2
RedCloth !image! bug with filter_html
Hi all! I am trying tu set up RedCloth for user-submitted comments. And here is my problem. The :filter_html option just breaks images :-( For example, if I try in irb: string= "Some textile !agif.gif! and textile again" RedCloth.new(string, [:filter_html, :filter_styles]).to_html(:textile) I get: NoMethodError: You have a nil object when you didn''t expect it! The error