Advice regarding extending RedCloth

Geoffrey Grosenbach boss at topfunky.com
Fri Jul 20 12:51:05 EDT 2007


On 7/18/07, why the lucky stiff <why at hobix.com> wrote:
> In the Super branch, this has changed and I really think it's better
> than SuperRedCloth, guys!!
>
> You create class methods for everything you want to output and then
> you pass it into the SuperRedCloth#to method:

Brilliant. I'll try this.

I'm using the feature of classic RedCloth where you can define a
method to handle a new block:

def textile_ruby
  return "ruby code with styling"
end
....
ruby. here's some ruby code in my textile



Geoffrey Grosenbach


More information about the Redcloth-upwards mailing list