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.

Read 
http://tomayko.com/writings/ruby-markdown-libraries-real-cheap-for-you-two-for-price-of-one
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:
> Hi there,
>
> In my app I load some markdown text from environment.rb and display it
> via haml using the markdown filter
>
> This is my markdown text kept in a hash in environment.rb
>
>     REGISTRY[:postage_explanation] = <<EOF
>       Why is postage so much?
>       ========================
>       ...
>    EOF
>
> This is my partial
>
>     #postageExplanation
>       :markdown
>       #{REGISTRY[:postage_explanation]}
>
> This works fine on dev machines running OSX Leopard in development and
> production, but the markdown is not processed on my Ubuntu server. My
> Ubuntu server has the relevant gems installed I think
>
> *** LOCAL GEMS ***  - full list at end of post
> ...
> haml (2.0.1, 2.0.0)
> ...
> RedCloth (4.0.1, 3.0.4)
>
> Any ideas why this might be happening or how to investigate further
> would be most appreciated
>
> Many thanks
>
> Andrew
>
> p.s. Using Rails 2.1
>
> *** LOCAL GEMS *** - full list
>
> actionmailer (2.1.0, 2.0.2, 1.3.3, 1.3.2, 1.2.5)
> actionpack (2.1.0, 2.0.2, 1.13.3, 1.13.2, 1.12.5)
> actionwebservice (1.2.6, 1.2.3, 1.2.2, 1.1.6)
> activerecord (2.1.0, 2.0.2, 1.15.3, 1.15.2, 1.14.4)
> activeresource (2.1.0, 2.0.2)
> activesupport (2.1.0, 2.0.2, 1.4.2, 1.4.1, 1.3.1)
> builder (2.1.2, 2.1.1)
> capistrano (2.4.3, 2.1.0, 1.4.1)
> cgi_multipart_eof_fix (2.5.0, 2.1)
> columnize (0.1)
> daemons (1.0.10, 1.0.9, 1.0.5)
> fastthread (1.0.1, 1.0)
> flexmock (0.8.2, 0.8.0)
> gem_plugin (0.2.3, 0.2.2)
> haml (2.0.1, 2.0.0)
> highline (1.4.0)
> hoe (1.7.0, 1.5.3)
> image_science (1.1.3)
> linecache (0.43)
> markaby (0.5)
> metaid (1.0)
> mongrel (1.1.5, 1.1.3, 1.0.1)
> mongrel_cluster (1.0.5, 0.2.1)
> mysql (2.7)
> needle (1.3.0)
> net-scp (1.0.1)
> net-sftp (2.0.1, 1.1.0)
> net-ssh (2.0.3, 1.1.2, 1.0.10)
> net-ssh-gateway (1.0.0)
> passenger (2.0.1, 1.0.5)
> rack (0.3.0)
> rails (2.1.0, 2.0.2, 1.2.3)
> rails-app-installer (0.2.0)
> rake (0.8.1, 0.7.2)
> rcov (0.8.1.2.0)
> RedCloth (4.0.1, 3.0.4)
> rspec (1.1.4, 1.1.2, 1.1.1)
> ruby-debug (0.10.1, 0.10.0)
> ruby-debug-base (0.10.1, 0.10.0)
> rubyforge (1.0.0)
> rubygems-update (1.2.0, 1.0.1, 0.9.5)
> RubyInline (3.7.0, 3.6.7)
> sources (0.0.1)
> sqlite3-ruby (1.2.2, 1.2.1)
> typo (5.0.3.98.1, 5.0.2, 5.0.1)
> xmpp4r (0.3.2)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to