From lists at ruby-forum.com Tue Apr 13 16:50:38 2010 From: lists at ruby-forum.com (Kenneth Eunjung) Date: Tue, 13 Apr 2010 22:50:38 +0200 Subject: BBCode Fork of RedCloth In-Reply-To: References: Message-ID: <0cc1309ccf9a1610ab2dfcac56daf734@ruby-forum.com> 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/. From ryan at fangamer.com Wed Apr 14 22:14:03 2010 From: ryan at fangamer.com (Ryan Alyea) Date: Wed, 14 Apr 2010 21:14:03 -0500 Subject: BBCode Fork of RedCloth In-Reply-To: <0cc1309ccf9a1610ab2dfcac56daf734@ruby-forum.com> References: <0cc1309ccf9a1610ab2dfcac56daf734@ruby-forum.com> Message-ID: <05144C9F-4F45-4DFF-A229-460EAF474A59@fangamer.com> Using this is kinda complicated since it's really only geared towards my particular forum. Basically you need to: 1) git clone git://github.com/ROFISH/redcloth.git 2) cd redcloth 3) rake install To use, you need to enable the BBCode path, since it'll use RedCloth rules by default (this does BBCode and Textile together): RedCloth.new(input,[:bbcode]).to_html There's a few other random features, like disabling pieces of code (like images) if you don't want them, and a bbcode_only codepath if you (or your users) want to disable Textile completely. This is a line from my posting logic: RedCloth.new(self.body,[:no_span_caps,:filter_html,(self.disable_textile ? :bbcode_only : :bbcode),{:disable_inline=>[(:image unless forum.can_post_images?),:del,:link_alias]}]).to_html Ryan Alyea ryan at fangamer.com On Apr 13, 2010, at 3:50 PM, Kenneth Eunjung wrote: > 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/. > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 1817 bytes Desc: not available URL: