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:
<http://rubyforge.org/pipermail/redcloth-upwards/attachments/20100414/225a6007/attachment.bin>