Ruby Forum Radiant CMS > extending textile

Posted by nurullah (Guest)
on 03.05.2008 20:08
(Received via mailing list)
Hello,

I want to extend textile for using <div> tags just like <p>es

I mean I want to do something like that:

div(css-class). and this is content

Please let me know if you know some workaround.
Posted by Sean Cribbs (seancribbs)
on 03.05.2008 20:20
(Received via mailing list)
Why not just do <div class="css-class"></div>?  Textile will ignore the 
tag.

Sean
Posted by nurullah (Guest)
on 03.05.2008 20:35
(Received via mailing list)
I can do that but not everyone can do.. I need to simplify it

I can do with %(css-class) what I want but It really would be better off 
the
way I asked..

btw, looks like brand new RedCloth baked:
http://hackety.org/2008/03/20/jasonGarberFinishesSuperRedClothForMe.html

is there a way we can do it? coz although I am no expert I reviewed the 
code
and I could include what I want atm

http://github.com/jgarber/redcloth/tree/master/lib/formatters/html.rb

thank you...
Posted by nurullah (Guest)
on 03.05.2008 23:55
(Received via mailing list)
well, i achieved what i want :))

i followed the steps sean and jason pointed

config.load_paths.unshift "/path/to/gems/RedCloth-3.2.9.0/lib"

http://lists.radiantcms.org/pipermail/radiant/2008-April/008358.html

plus line breaks also work charmly now

i use redcloth 3.301,

3.302 gives error:

$ ./script/console
Loading development environment (Rails 2.0.2)
irb: symbol lookup error:
/usr/lib/ruby/gems/1.8/gems/RedCloth-3.302/lib/redcloth_scan.so: 
undefined
symbol: red_block