Unfortunately the begin require 'rdiscount' BlueCloth = RDiscount rescue LoadError require 'bluecloth' end
doesn't work with HAML, because of the way HAML initialises filters. I've included a patch in another post to address this. All best Andrew On Aug 27, 10:12 am, Geffy <[EMAIL PROTECTED]> wrote: > For Markdown processing the primary gem is the old, unmaintained, > buggy BlueCloth. There's also now rdiscount and rpeg-markdown > alternatives to BlueCloth. Both are more correct parsers and faster I > believe. > > Readhttp://tomayko.com/writings/ruby-markdown-libraries-real-cheap-for-yo... > for details. > > To use them, I've not tried this yet, but I think you have to have the > following in your config/environment.rb, in this case for RDiscount > > begin > require 'rdiscount' > BlueCloth = RDiscount > rescue LoadError > require 'bluecloth' > end > > On Aug 26, 12:55 am, apremdas <[EMAIL PROTECTED]> wrote: > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
