similar to: RedCloth !image! bug with filter_html

Displaying 20 results from an estimated 900 matches similar to: "RedCloth !image! bug with filter_html"

2007 Dec 04
2
Bug: NoMethodError: private method `gsub'' called for nil:NilClass
Hi there. I''m using RedCloth as part of a social network''s blog system. I came across the following bug when an img tag with the src attribute is inputted, and filter_html is set to true. I have pasted the code sample below. >> require ''RubyGems'' => true >> require ''RedCloth'' => true >>
2007 Aug 29
0
Patch - bug fix for RedCloth when using !image! and :filter_html in combination
RedCloth.new("!image!", [:filter_html]).to_html will cause the following error: "error occurred while evaluating nil.gsub" This patch will fix it. Can you apply this please to next release of RedCloth? Thanks! Tim --- redcloth_old.rb 2007-08-29 17:02:51.537099600 -0600 +++ redcloth.rb 2007-08-29 17:04:34.666099600 -0600 @@ -1115,7 +1115,7 @@
2006 Jul 05
0
RedCloth Error with :filter_html and external images links
Hi all, I''m trying to use RedCloth to filter HTML out of some user generated content using the :filter_html setting and I get the same error as reported in the link below. http://rubyforge.org/tracker/index.php?func=detail&aid=3262&group_id=216&atid=891 Has anyone found a workaround for this? -- Thanks, Sam -------------- next part -------------- An HTML attachment was
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 27
0
:filter_html and :hard_breaks makes <br> ...weird
hi! never posted to a mailing list before so I hope this is an appropriate use. Love redcloth btw! I guess I just have a bug report though... if I turn on hard_breaks and filter_html, all the <br />s turn into <br>s. weird. For now I''m just doing this which is fine: textilized = RedCloth.new(text, [ :filter_html, :hard_breaks ]) return
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/.
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
2005 May 24
3
textilize/markdown/sanitize for messageboards, oh my!
Hullo, fellow Railsers! (warning: this isn''t a 100% Rails specific question, but I guess it very much applies to what a lot of us are currently doing.) For a project that involves messageboard functionality I''m looking for a good way of sanitizing user input, so the silly fools, err, my wonderful users don''t mess things up too much. I''ve played around with
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
2006 Jan 27
10
html special characters. h() failure.
I was trying to convert a some text with the (r) character it so it replaced character \xAE with &reg; h(@item.description) didn''t do anything. I need to use @item.description.grep(/\xAE/,''&reg;'') for it to work. I think the h() function should be able to do all the codes that are available. Regards Neil.
2006 Aug 04
0
Hard break broken in 3.0.4?
Is :hard_break working in RedCloth 3.0.4? $ ruby -v ruby 1.8.4 (2005-12-24) [i686-linux] $ pwd /lib/ruby/gems/1.8/gems/RedCloth-3.0.4/lib $ irb irb(main):001:0> require ''redcloth'' => true irb(main):002:0> rc = RedCloth.new("h1. Heading\n\n_Not_ heading.") => "h1. Heading\n\n_Not_ heading." irb(main):003:0>
2006 May 26
8
calling render_to_string outside of controller
How can I call render_to_string outside of a controller. I''m stuck on this. I''ve nearly got my plugin finished but I can''t seem to get this to work. The method is in ActionController::Base but it is protected. -- Posted via http://www.ruby-forum.com/.
2005 Nov 22
1
Patches?
I have a few of patches for RC. A quick fix for a bug in clean_html, an improvement to clean_html to sanitize more links, and the addition of "filter_classes" and "filter_ids". What should I do? Email them to someone? why? (sorry, couldn''t avoid it) I actually don''t have separate patches for each, but could do them if needed. The first two are
2008 Nov 06
2
redcloth executable removed from gem?
Hello, I have the RedCloth 4.x gem installed on a new machine. I used to use the redcloth command line tool/executable ocassionally. Can anyone clarify if it''s still part of the RedCloth 4.x gem series? Thanks. PS: I checked the sources. And the executable source resides in bin [1]. However, checking the Rakefile that generates the gem package I can''t find any
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 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? --
2008 Apr 22
1
''dependencies'' and RedCloth
Hey gang. Jed noticed an issue with the ''dependency''/''dependencies'' macro the other day when working on the Collective wiki. Namely, if you make RedCloth a dependency Merb gets a little cranky. I think I have this figured out when doing some mods to Collective today too. However, before I go trying to fix this in Merb, I wanted to run this by the community.
2008 Mar 23
1
redcloth gem ragel code doesn''t build in jruby
I tried to install RedCloth-3.274 in jruby (trunk) but the install failed when RedCloth tried to build the C code using mkmf: I forget whether SuperRedcloth ever did build in JRuby?? I know Hpricot (which also uses ragel which can compile to Java code) works in JRuby -- with the patch here: https://code.whytheluckystiff.net/hpricot/ticket/131) I might be confusing the two ... FYI: If you
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